cg-object-id(1)
NAME
- cg-object-id - get the sha1 id of an object associated
- with the given symbolic id
SYNOPSIS
cg-object-id [-b | -c | -d | -n | -p | -t] [OBJECT_ID].sp
DESCRIPTION
Arraycan be an SHA1 id, a unique starting segment of an existing SHA1
id, a ref name, date, empty string, etc. See the COMMIT_ID description in cogito(7) for the full list..sp Normally, you do not
use this command directly (except with the -d parameter), but it
is used in other Cogito scripts to resolve passed object identifiers. If the ID is not provided, HEAD is assumed. The default
behavior is to show the commit ID, but you should always explicitly write -c if using this in a script..sp
OPTIONS
- Arrayturned 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 summary.
- --long-help
- Print user manual. The same as found in
- cg-object-id(1).
COPYRIGHT
- Copyright © Petr Baudis, Pavel Roskin, Philip Pokorny
- 2005.sp
SEE ALSO
- Array12/05/2006