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

[PATCH 2/5] documentation: add brief mention of cat-file to tutorial part I

From
Bbfields@fieldses.org <bfields@fieldses.org>
Date
May 29, 2006, 23:31 UTC
Message-ID
<1148945496592-git-send-email-bfields@fieldses.org>
In-Reply-To
<11489454961705-git-send-email-bfields@fieldses.org>
From: J. Bruce Fields <bfields@citi.umich.edu>
I'd rather avoid git cat-file so early on, but the
	git-cat-file -p old-commit:/path/to/file
trick is too useful....
Also fix a nearby typo while we're at it.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
---
e47d8a459f0a2407304c9b7165b30746baa7fe29
 Documentation/tutorial.txt |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
e47d8a459f0a2407304c9b7165b30746baa7fe29
diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt
index 5fdeab9..039a859 100644
--- a/Documentation/tutorial.txt
+++ b/Documentation/tutorial.txt
@@ -435,12 +435,18 @@ adjust gitk's fonts by holding down the 
 
 Finally, most commands that take filenames will optionally allow you
 to precede any filename by a commit, to specify a particular version
-fo the file:
+of the file:
 
 -------------------------------------
 $ git diff v2.5:Makefile HEAD:Makefile.in
 -------------------------------------
 
+You can also use "git cat-file -p" to see any such file:
+
+-------------------------------------
+$ git cat-file -p v2.5:Makefile
+-------------------------------------
+
 Next Steps
 ----------
 
-- 
1.3.3.gff62
Previous: bfields@fieldses.orgNext: bfields@fieldses.org
Message 2 of 5 in “documentation: mention gitk font adjustment in tutorial”
  1. 1/5 documentation: mention gitk font adjustment in tutorialbfields@fieldses.org, May 29, 2006
  2. 2/5 documentation: add brief mention of cat-file to tutorial part Ibfields@fieldses.org, May 29, 2006
  3. 3/5 Documentation: retitle the git-core tutorialbfields@fieldses.org, May 29, 2006
  4. 4/5 Documentation: rewrite the core-tutorial introductionbfields@fieldses.org, May 29, 2006
  5. 5/5 Documentation: fix a tutorial-2 typobfields@fieldses.org, May 29, 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.