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

[PATCH] git-show.txt: mention that object path must be relative in EXAMPLES.

From
Jari Aalto <jari.aalto@cante.net>
Date
Feb 7, 2009, 22:16 UTC
Message-ID
<87zlgxzydw.fsf@jondo.cante.net>
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 Documentation/git-show.txt |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-show.txt b/Documentation/git-show.txt
index 48b612e..2a014cc 100644
--- a/Documentation/git-show.txt
+++ b/Documentation/git-show.txt
@@ -57,7 +57,11 @@ git show v1.0.0^\{tree\}::
 git show next~10:Documentation/README::
 	Shows the contents of the file `Documentation/README` as
 	they were current in the 10th last commit of the branch
-	`next`.
+	`next`. *Note:* the 'object' path must always be relative to git
+	project root. This wouldn't have worked:
+
+	$ cd Documentation
+	$ git show next~10:README
 
 git show master:Makefile master:t/Makefile::
 	Concatenates the contents of said Makefiles in the head
-- 
1.5.6.5
Next: Jakub Narebski
Message 1 of 5 in “git-show.txt: mention that object path must be relative in EXAMPLES.”
  1. git-show.txt: mention that object path must be relative in EXAMPLES.Jari Aalto, Feb 7, 2009
  2. Jakub NarebskiFeb 7, 2009
  3. Boyd Stephen Smith Jr.Feb 8, 2009
  4. Jari AaltoFeb 8, 2009
  5. Boyd Stephen Smith Jr.Feb 8, 2009

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.