1CG-OBJECT-ID(1)                                                CG-OBJECT-ID(1)
2
3
4

NAME

6       cg-object-id - get the sha1 id of an object associated with the given
7       symbolic id
8

SYNOPSIS

10       cg-object-id [-b | -c | -d | -n | -p | -t] [OBJECT_ID]
11
12

DESCRIPTION

14       Resolves a given symbolic id to the raw SHA1 id (or a symbolic
15       description when passed the -d parameter). The symbolic id can be an
16       SHA1 id, a unique starting segment of an existing SHA1 id, a ref name,
17       date, empty string, etc. See the COMMIT_ID description in cogito(7) for
18       the full list.
19
20       Normally, you do not use this command directly (except with the -d
21       parameter), but it is used in other Cogito scripts to resolve passed
22       object identifiers. If the ID is not provided, HEAD is assumed. The
23       default behavior is to show the commit ID, but you should always
24       explicitly write -c if using this in a script.
25
26

OPTIONS

28       -b     Get name of the current branch.
29
30       -c     Get ID of commit matching the object ID (error out if it is not
31              a commit). This is the default if you do not pass any parameter
32              as well, but that is only for the human usage. For clarity, all
33              scripted usage of cg-object-id should use -c explicitly if it
34              wants a commit.
35
36       -d     Get a commit description in form of a short string. It shows the
37              most recent tag in past of the commit and if it is not the
38              commit itself, it appends first few chars of the commit id to
39              id. See git-describe(1) for details.
40
41       -n     Normalize only - don't check the object type.
42
43       -p     Get ID of the first parent commit of a given revision or HEAD.
44              NOTE: Multiple SHA1s separated by newlines will be returned for
45              commits with multiple parents.
46
47       -t     Get ID of tree associated with given commit or HEAD.
48
49       OBJECT_ID
50              An ID resolving to a commit.
51
52       -h, --help
53              Print usage summary.
54
55       --long-help
56              Print user manual. The same as found in cg-object-id(1).
57
59       Copyright © Petr Baudis, Pavel Roskin, Philip Pokorny 2005
60
61

SEE ALSO

63       cg-object-id is part of cogito(7), a toolkit for managing git(7) trees.
64
65
66
67
68                                  12/11/2006                   CG-OBJECT-ID(1)
Impressum