Stacked Git logo

Stacked Git

stg-id(1)

NAME

stg-id - Print git hash of a StGit revision

SYNOPSIS

stg id [OPTIONS] [revision]

DESCRIPTION

Print the hash (object id) of a StGit revision.

In addition to standard Git revision specifiers (revspecs), patches may be specified in the form [<branch>:]<patch> or [<branch>:]{base} for the base of a stack. If no branch is specified, the current branch is used by default. The parent of a patch may be specified with [<branch>:]<patch>^.

OPTIONS

-b <branch>
--branch=<branch>

Use <branch> instead of current branch

StGit

Part of the StGit suite - see stg(1)