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

[PATCH] Fix section about backdating tags in the git-tag docs

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Apr 11, 2008, 20:52 UTC
Message-ID
<20080411205207.GA18531@atjola.homenet>
In-Reply-To
<loom.20080411T193913-700@post.gmane.org>

The tagger is equal to the committer, not the author, so GIT_COMMITTER_DATE is the right environment variable to use, not GIT_AUTHOR_DATE.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
---
 Documentation/git-tag.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
index 4b6fd90..9712392 100644
--- a/Documentation/git-tag.txt
+++ b/Documentation/git-tag.txt
@@ -233,14 +233,14 @@ the tag object affects, for example, the ordering of tags in the
 gitweb interface.
 
 To set the date used in future tag objects, set the environment
-variable GIT_AUTHOR_DATE to one or more of the date and time.  The
+variable GIT_COMMITTER_DATE to one or more of the date and time.  The
 date and time can be specified in a number of ways; the most common
 is "YYYY-MM-DD HH:MM".
 
 An example follows.
 
 ------------
-$ GIT_AUTHOR_DATE="2006-10-02 10:31" git tag -s v1.0.1
+$ GIT_COMMITTER_DATE="2006-10-02 10:31" git tag -s v1.0.1
 ------------
 
 
-- 
1.5.5.rc3.7.gba133
Previous: Eric Blake
Message 4 of 4 in “backdated tag bug”
  1. Eric BlakeApr 11, 2008
  2. Linus TorvaldsApr 11, 2008
  3. Eric BlakeApr 11, 2008
  4. Fix section about backdating tags in the git-tag docsBjörn Steinbrink, Apr 11, 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.