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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user