From: Mark Lodato Date: Sat, 13 Mar 2010 04:52:58 GMT Subject: [PATCH/RFC 06/12] docs: clarify , , , etc Message-ID: <1268455984-19061-7-git-send-email-lodatom@gmail.com> In-Reply-To: <1268455984-19061-1-git-send-email-lodatom@gmail.com> In git(1), give more precise definitions of , , , and so on. In particular, differentiate (which may take generic revision specifiers) from , which only accepts a 40-character hex SHA-1 ID. Also note that is another way to say . Signed-off-by: Mark Lodato --- Documentation/git.txt | 38 +++++++++++++++++++++----------------- 1 files changed, 21 insertions(+), 17 deletions(-) diff --git a/Documentation/git.txt b/Documentation/git.txt index f06e4de..55f3842 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -418,32 +418,36 @@ Identifier Terminology Abbreviated or symbolic identifiers cannot be used. :: - Indicates the object name for any type of object. + Indicates the object name for any type of object. Symbolic name or + abbreviated SHA-1 identifiers may be used (see "SPECIFYING REVISIONS" + in linkgit:git-rev-parse[1] for details). :: - Indicates a tag object name. This is an annotated tag object, as + Indicates a tag-type . This is an annotated tag object, as opposed to , which can refer to any type of object. -:: - Indicates a blob object name. +:: + Indicates a commit-type . :: - Indicates a tree object name. - -:: - Indicates a commit object name. + Indicates a tree-type . -:: - Indicates a tree, commit or tag object name. A - command that takes a argument ultimately wants to - operate on a object but automatically dereferences - and objects that point at a . +:: + Indicates a blob-type . +:: :: - Indicates a commit or tag object name. A - command that takes a argument ultimately wants to - operate on a object but automatically dereferences - objects that point at a . + Indicates a , or a that points at a . + A command that takes a argument ultimately wants to + operate on a commit object but automatically dereferences objects + until it finds a commit. + A is another name for a . + +:: + Indicates a , or a or that points at a + . A command that takes a argument ultimately + wants to operate on a tree object but automatically dereferences + objects until it finds a tree. :: Indicates that an object type is required. -- 1.7.0.2