Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
-from optparse import OptionParser, make_option
-
from stgit.out import out
from stgit.commands import common
from stgit.lib import stack
-help = 'print the GIT hash value of a StGIT reference'
-usage = """%prog [options] [id]
-
+help = 'Print the git hash value of a StGit reference'
+usage = ['[options] [id]']
+description = """
Print the SHA1 value of a Git id (defaulting to HEAD). In addition to
the standard Git id's like heads and tags, this command also accepts
'[<branch>:]<patch>' and '[<branch>:]{base}' showing the id of a patch
current one. The bottom of a patch is accessible with the
'[<branch>:]<patch>^' format."""
-directory = common.DirectoryHasRepositoryLib()
options = []
+directory = common.DirectoryHasRepositoryLib()
+
def func(parser, options, args):
"""Show the applied patches
"""