X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/e1261152d817111550e26c026d2793d8621b51ad..e45e1f855d8a7cd3b4183612122aa5c6de7f7b8d:/stgit/commands/id.py diff --git a/stgit/commands/id.py b/stgit/commands/id.py index 447eb62..284589a 100644 --- a/stgit/commands/id.py +++ b/stgit/commands/id.py @@ -28,9 +28,12 @@ usage = """%prog [options] [id] Print the hash value of a GIT id (defaulting to HEAD). In addition to the standard GIT id's like heads and tags, this command also accepts -'base' and '[]/(bottom | top)'.""" +'base[@]' and '[[@]][//[bottom | top]]'. If no +'top' or 'bottom' are passed and is a valid patch name, 'top' +will be used by default.""" -options = [] +options = [make_option('-b', '--branch', + help = 'use BRANCH instead of the default one')] def func(parser, options, args): @@ -43,4 +46,4 @@ def func(parser, options, args): else: parser.error('incorrect number of arguments') - print git_id(id_str, strict = True) + print git_id(id_str)