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

[PATCH] Fix example in git-name-rev documentation

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 30, 2008, 20:11 UTC
Message-ID
<7v7i9ygt4x.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<48B9A2C7.3080001@dgreaves.com>

Since 59d3f54 (name-rev: avoid "^0" when unneeded, 2007-02-20), name-rev stopped showing an unnecessary "^0" to dereference a tag down to a commit. The patch should have made a matching update to the documentation, but we forgot.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 Documentation/git-name-rev.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-name-rev.txt b/Documentation/git-name-rev.txt
index abd2237..7ca8a7b 100644
--- a/Documentation/git-name-rev.txt
+++ b/Documentation/git-name-rev.txt
@@ -59,7 +59,7 @@ Enter 'git-name-rev':
 
 ------------
 % git name-rev 33db5f4d9027a10e477ccf054b2c1ab94f74c85a
-33db5f4d9027a10e477ccf054b2c1ab94f74c85a tags/v0.99^0~940
+33db5f4d9027a10e477ccf054b2c1ab94f74c85a tags/v0.99~940
 ------------
 
 Now you are wiser, because you know that it happened 940 revisions before v0.99.
-- 
1.6.0.1.162.g04bc
Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 5 in “setlocalversion wasn't producing git labels for bisect”
  1. David GreavesAug 30, 2008
  2. Junio C HamanoAug 30, 2008
  3. Fix example in git-name-rev documentationJunio C Hamano, Aug 30, 2008
  4. Johannes SchindelinSep 1, 2008
  5. [Regression] Re: setlocalversion wasn't producing git labels for bisectDavid Greaves, Aug 31, 2008

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.