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

[PATCH] git-for-each-ref doesn't return "the bit after $GIT_DIR/refs"

From
APAndy Parkins <andyparkins@gmail.com>
Date
Feb 5, 2007, 19:58 UTC
Message-ID
<200702051958.47237.andyparkins@gmail.com>

The documentation for git-for-each-ref said that the refname variable would return "the part after $GIT_DIR/refs/", which isn't true.

Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
 Documentation/git-for-each-ref.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
index da52eba..f49b0d9 100644
--- a/Documentation/git-for-each-ref.txt
+++ b/Documentation/git-for-each-ref.txt
@@ -66,7 +66,7 @@ keys.
 For all objects, the following names can be used:
 
 refname::
-	The name of the ref (the part after $GIT_DIR/refs/).
+	The name of the ref (the part after $GIT_DIR/).
 
 objecttype::
 	The type of the object (`blob`, `tree`, `commit`, `tag`).
-- 
1.5.0.rc1.gf4b6c
Message 1 of 1 in “git-for-each-ref doesn't return "the bit after $GIT_DIR/refs"”
  1. git-for-each-ref doesn't return "the bit after $GIT_DIR/refs"Andy Parkins, Feb 5, 2007

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.