man cg-object-id (Commandes) - get sha1 id of commit or tree associated with given id or head
NAME
cg-object-id - get sha1 id of commit or tree associated with given id or head
SYNOPSIS
cg-object-id [-c | -n | -p | -t] [OBJECT_ID]
DESCRIPTION
If the ID is not provided, HEAD is used. The default behavior is to show the commit ID.
OPTIONS
- -c
 - Get ID of commit matching the object ID (error out if it is not a commit). This is the default if you do not pass any parameter as well, but that is only for the human usage. For clarity, all scripted usage of cg-object-id should use -c explicitly if it wants a commit.
 - -n
 - Normalize only - don't check the object type.
 - -p
 - Get ID of the first parent commit of a given revision or HEAD. NOTE: Multiple SHA1s separated by newlines will be returned for commits with multiple parents.
 - -t
 - Get ID of tree associated with given commit or HEAD.
 - OBJECT_ID
 - An ID resolving to a commit.
 - -h, --help
 - Print usage help.
 
COPYRIGHT
Copyright © Petr Baudis, Pavel Roskin, Philip Pokorny 2005