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

Method findStrayModifications

src/CLI2.cpp:1074–1091  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1072
1073////////////////////////////////////////////////////////////////////////////////
1074void CLI2::findStrayModifications() {
1075 bool changes = false;
1076
1077 auto command = getCommand();
1078 if (command == "add" || command == "log") {
1079 for (auto& a : _args) {
1080 if (a.hasTag("FILTER")) {
1081 a.unTag("FILTER");
1082 a.tag("MODIFICATION");
1083 changes = true;
1084 }
1085 }
1086 }
1087
1088 if (changes)
1089 if (Context::getContext().config.getInteger("debug.parser") >= 2)
1090 Context::getContext().debug(dump("CLI2::prepareFilter findStrayModifications"));
1091}
1092
1093////////////////////////////////////////////////////////////////////////////////
1094// <name>[.<mod>]:['"][<value>]['"] --> name <op> value

Callers

nothing calls this directly

Calls 4

unTagMethod · 0.80
tagMethod · 0.80
hasTagMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected