mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 21:38:35 +02:00
SHA1
- removed previously introduced _sha1 helper command - modified helper command _version to either display the version or the sha1 depending if build from source tar ball or from git.
This commit is contained in:
parent
c0c58f9aff
commit
55de71feca
4 changed files with 1 additions and 15 deletions
|
@ -134,7 +134,6 @@ void Cmd::load ()
|
|||
commands.push_back ("_ids");
|
||||
commands.push_back ("_config");
|
||||
commands.push_back ("_version");
|
||||
commands.push_back ("_sha1");
|
||||
commands.push_back ("_urgency");
|
||||
commands.push_back ("_query");
|
||||
commands.push_back ("_zshcommands");
|
||||
|
@ -244,7 +243,6 @@ bool Cmd::isReadOnlyCommand ()
|
|||
command == "_ids" ||
|
||||
command == "_config" ||
|
||||
command == "_version" ||
|
||||
command == "_sha1" ||
|
||||
command == "_urgency" ||
|
||||
command == "_query" ||
|
||||
command == "_zshcommands" ||
|
||||
|
|
|
@ -269,7 +269,6 @@ int Context::dispatch (std::string &out)
|
|||
else if (cmd.command == "_ids") { rc = handleCompletionIDs (out); }
|
||||
else if (cmd.command == "_config") { rc = handleCompletionConfig (out); }
|
||||
else if (cmd.command == "_version") { rc = handleCompletionVersion (out); }
|
||||
else if (cmd.command == "_sha1") { rc = handleSha1 (out); }
|
||||
else if (cmd.command == "_urgency") { rc = handleUrgency (out); }
|
||||
else if (cmd.command == "_query") { rc = handleQuery (out); }
|
||||
else if (cmd.command == "_zshcommands") { rc = handleZshCompletionCommands (out); }
|
||||
|
|
|
@ -523,21 +523,11 @@ int handleCompletionConfig (std::string& outs)
|
|||
// A simple version display for use by completion scripts and the task-update
|
||||
// script.
|
||||
int handleCompletionVersion (std::string& outs)
|
||||
{
|
||||
outs = VERSION;
|
||||
outs += "\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// A simple SHA1 display for use during development to identify which task
|
||||
// version one is running.
|
||||
int handleSha1 (std::string& outs)
|
||||
{
|
||||
#ifdef HAVE_COMMIT
|
||||
outs = COMMIT;
|
||||
#else
|
||||
outs = "No SHA1 available";
|
||||
outs = VERSION;
|
||||
#endif
|
||||
outs += "\n";
|
||||
return 0;
|
||||
|
|
|
@ -67,7 +67,6 @@ int handleCompletionCommands (std::string&);
|
|||
int handleCompletionIDs (std::string&);
|
||||
int handleCompletionConfig (std::string&);
|
||||
int handleCompletionVersion (std::string&);
|
||||
int handleSha1 (std::string&);
|
||||
int handleUrgency (std::string&);
|
||||
int handleQuery (std::string&);
|
||||
int handleZshCompletionCommands (std::string&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue