mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Added _sha1 helper command to quickly identify a
task dev version.
This commit is contained in:
parent
ae4e28689d
commit
c0c58f9aff
4 changed files with 18 additions and 0 deletions
|
@ -529,6 +529,20 @@ int handleCompletionVersion (std::string& outs)
|
|||
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";
|
||||
#endif
|
||||
outs += "\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Temporary command to display urgency for a task.
|
||||
int handleUrgency (std::string& outs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue