Support for --file option for ssh queries.

Allows user to list files and attributes (ADDED,
MODIFIED, DELETED, RENAMED, COPIED) when querying for
patch sets.

Should provide an easy mechanism for some CI systems
to trigger only on certain file changes in larger
repositories.

Change-Id: I61b5203bc1ad1aec9c7d4458a44c207b99a1c4e3
This commit is contained in:
Gustaf Lundh
2011-11-02 17:21:05 +01:00
parent ac7d2f3448
commit 2ebc42de3f
6 changed files with 84 additions and 4 deletions

View File

@@ -56,6 +56,11 @@ class Query extends BaseCommand {
processor.setIncludeComments(on);
}
@Option(name = "--files", usage = "Include file list on patch sets")
void setFiles(boolean on) {
processor.setIncludeFiles(on);
}
@Argument(index = 0, required = true, multiValued = true, metaVar = "QUERY", usage = "Query to execute")
private List<String> query;