Output full commit message in query results

If the user adds a flag to the query parameters, include the full
commit message in the result data.  This is helpful when verifying
commit messages and with similar tasks.

Change-Id: Iff93bfebfa0c5e2209be29fe60ae12809a76479a
This commit is contained in:
Brad Larson
2011-10-27 19:36:27 -05:00
parent 9f9829e7ec
commit 0943d6e7fc
7 changed files with 61 additions and 1 deletions

View File

@@ -61,6 +61,11 @@ class Query extends BaseCommand {
processor.setIncludeFiles(on);
}
@Option(name = "--commit-message", usage = "Include the full commit message for a change")
void setCommitMessage(boolean on) {
processor.setIncludeCommitMessage(on);
}
@Argument(index = 0, required = true, multiValued = true, metaVar = "QUERY", usage = "Query to execute")
private List<String> query;