from stgit.commands.common import *
from stgit.utils import *
+from stgit.out import *
from stgit import stack, git
'top' or 'bottom' are passed and <patch> is a valid patch name, 'top'
will be used by default."""
+directory = DirectoryHasRepository()
options = [make_option('-b', '--branch',
help = 'use BRANCH instead of the default one')]
else:
parser.error('incorrect number of arguments')
- print git_id(id_str)
+ out.stdout(git_id(id_str))