MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / fixDependsAttribute

Method fixDependsAttribute

src/Task.cpp:1267–1276  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1265
1266////////////////////////////////////////////////////////////////////////////////
1267void Task::fixDependsAttribute() {
1268 // Fix up the old `depends` attribute to match the `dep_..` attributes (or
1269 // remove it if there are no deps)
1270 auto deps = getDependencyUUIDs();
1271 if (deps.size() > 0) {
1272 set("depends", join(",", deps));
1273 } else {
1274 remove("depends");
1275 }
1276}
1277
1278////////////////////////////////////////////////////////////////////////////////
1279bool Task::isDepAttr(const std::string& attr) { return attr.compare(0, 4, "dep_") == 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected