git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] document the <tree ish> <file> blob reference syntax

From
Junio C Hamano <junkio@cox.net>
Date
Oct 25, 2006, 18:33 UTC
Message-ID
<7vwt6ob5zc.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<38fafea491402334df335c486270ebe9@pinky>
Andy Whitcroft <apw@shadowen.org> writes:
Show 5 quoted lines
> It is possible to specify a specific file within a tree-ish
> symbolically.  For example you can find the contents of
> a specific file in a specific commit as below:
>
> 	git cat-file -p v1.2.4:git-prune.sh

Didn't we document this elsewhere recently in git-rev-parse? How about this instead?

-- >8 -- [PATCH] Refer to git-rev-parse:Specifying Revisions from git.txt

The brief list given in "Symbolic Identifiers" section of the main documentation is good enough for overview, but help the reader to find a more comrehensive list as needed.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 Documentation/git.txt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 3af6fc6..b00607e 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -562,6 +562,9 @@ HEAD::
 	a valid head 'name'
 	(i.e. the contents of `$GIT_DIR/refs/heads/<head>`).
 
+For a more complete list of ways to spell object names, see
+"SPECIFYING REVISIONS" section in gitlink:git-rev-parse[1].
+
 
 File/Directory Structure
 ------------------------
-- 
1.4.3.2.gc1a4
Previous: Andy WhitcroftNext: Andy Whitcroft
Message 2 of 5 in “document the <tree ish> <file> blob reference syntax”
  1. document the <tree ish> <file> blob reference syntaxAndy Whitcroft, Oct 25, 2006
  2. Junio C HamanoOct 25, 2006
  3. Andy WhitcroftOct 25, 2006
  4. Junio C HamanoOct 25, 2006
  5. Jakub NarebskiOct 25, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.