from stgit.commands.common import *
from stgit.utils import *
+from stgit.out import *
from stgit import stack, git
Print the name of the current (topmost) patch."""
-options = []
+directory = DirectoryHasRepository()
+options = [make_option('-b', '--branch',
+ help = 'use BRANCH instead of the default one')]
def func(parser, options, args):
name = crt_series.get_current()
if name:
- print name
+ out.stdout(name)
else:
raise CmdException, 'No patches applied'