cli: Add the --tags option to describe
Change-Id: I78924e61e2050eeaff991ee56715f36514100492 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
This commit is contained in:
parent
afcb3a8c9e
commit
0cac834668
|
@ -289,6 +289,7 @@ usage_Status=Show the working tree status
|
||||||
usage_StopTrackingAFile=Stop tracking a file
|
usage_StopTrackingAFile=Stop tracking a file
|
||||||
usage_TextHashFunctions=Scan repository to compute maximum number of collisions for hash functions
|
usage_TextHashFunctions=Scan repository to compute maximum number of collisions for hash functions
|
||||||
usage_UpdateRemoteRepositoryFromLocalRefs=Update remote repository from local refs
|
usage_UpdateRemoteRepositoryFromLocalRefs=Update remote repository from local refs
|
||||||
|
usage_UseTags=Use any tag including lightweight tags
|
||||||
usage_WriteDirCache=Write the DirCache
|
usage_WriteDirCache=Write the DirCache
|
||||||
usage_abbrevCommits=abbreviate commits to N + 1 digits
|
usage_abbrevCommits=abbreviate commits to N + 1 digits
|
||||||
usage_abortConnectionIfNoActivity=abort connection if no activity
|
usage_abortConnectionIfNoActivity=abort connection if no activity
|
||||||
|
|
|
@ -65,6 +65,9 @@ class Describe extends TextBuiltin {
|
||||||
@Option(name = "--long", usage = "usage_LongFormat")
|
@Option(name = "--long", usage = "usage_LongFormat")
|
||||||
private boolean longDesc;
|
private boolean longDesc;
|
||||||
|
|
||||||
|
@Option(name = "--tags", usage = "usage_UseTags")
|
||||||
|
private boolean useTags;
|
||||||
|
|
||||||
@Option(name = "--match", usage = "usage_Match", metaVar = "metaVar_pattern")
|
@Option(name = "--match", usage = "usage_Match", metaVar = "metaVar_pattern")
|
||||||
private List<String> patterns = new ArrayList<>();
|
private List<String> patterns = new ArrayList<>();
|
||||||
|
|
||||||
|
@ -77,6 +80,7 @@ protected void run() {
|
||||||
cmd.setTarget(tree);
|
cmd.setTarget(tree);
|
||||||
}
|
}
|
||||||
cmd.setLong(longDesc);
|
cmd.setLong(longDesc);
|
||||||
|
cmd.setTags(useTags);
|
||||||
cmd.setMatch(patterns.toArray(new String[0]));
|
cmd.setMatch(patterns.toArray(new String[0]));
|
||||||
String result = null;
|
String result = null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue