X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/4ec677417c8bfb4d30b2cd7482c5ceca9b542fc8..6dd8fafabb5b8e266a85f13c8851ca8a66a1a405:/stgit/commands/id.py diff --git a/stgit/commands/id.py b/stgit/commands/id.py index 4226adf..3e28f2f 100644 --- a/stgit/commands/id.py +++ b/stgit/commands/id.py @@ -20,6 +20,7 @@ from optparse import OptionParser, make_option from stgit.commands.common import * from stgit.utils import * +from stgit.out import * from stgit import stack, git @@ -32,6 +33,7 @@ the standard GIT id's like heads and tags, this command also accepts 'top' or 'bottom' are passed and 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')] @@ -46,4 +48,4 @@ def func(parser, options, args): else: parser.error('incorrect number of arguments') - print git_id(id_str) + out.stdout(git_id(id_str))