Added _sha1 helper command to quickly identify a

task dev version.
This commit is contained in:
Federico Hernandez 2011-01-15 21:41:28 +01:00
parent ae4e28689d
commit c0c58f9aff
4 changed files with 18 additions and 0 deletions

View file

@ -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)