summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2be1bc4)
raw | patch | inline | side by side (parent: 2be1bc4)
author | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 29 May 2006 23:31:33 +0000 (19:31 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 30 May 2006 06:14:45 +0000 (23:14 -0700) |
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/tutorial.txt | patch | blob | history |
index 5fdeab9833f9c64dfce21e34187cb14d7e3d7b0c..039a8598e3da230e0984127600470542c4897989 100644 (file)
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
----------