~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the 'autobcc' config option
[stgit]
/
stgit
/
commands
/
top.py
diff --git
a/stgit/commands/top.py
b/stgit/commands/top.py
index
676c7ad
..
f36a0b0
100644
(file)
--- a/
stgit/commands/top.py
+++ b/
stgit/commands/top.py
@@
-25,9
+25,12
@@
from stgit import stack, git
help = 'print the name of the top patch'
help = 'print the name of the top patch'
-usage =
'%prog'
+usage =
"""%prog [options]
-options = []
+Print the name of the current (topmost) patch."""
+
+options = [make_option('-b', '--branch',
+ help = 'use BRANCH instead of the default one')]
def func(parser, options, args):
def func(parser, options, args):