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

[PATCH] git-format-patch should show the correct version

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 22, 2005, 19:38 UTC
Message-ID
<Pine.LNX.4.63.0512222036460.31820@wbgn013.biozentrum.uni-wuerzburg.de>

We want to record the version of the tools the patch was generated with. While these tools could be rebuilt, git-format-patch stayed the same and report the wrong version.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
ca85baee8d11e5c4c6de4678fecf311a029c1d7c
diff --git a/Makefile b/Makefile
index d35637c..5dec33a 100644
--- a/Makefile
+++ b/Makefile
@@ -406,6 +406,9 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)) : % 
 git-cherry-pick: git-revert
 	cp $< $@
 
+# format-patch records GIT_VERSION
+git-format-patch: Makefile
+
 %.o: %.c
 	$(CC) -o $*.o -c $(ALL_CFLAGS) $<
 %.o: %.S
-- 
1.0.GIT
Message 1 of 1 in “git-format-patch should show the correct version”
  1. git-format-patch should show the correct versionJohannes Schindelin, Dec 22, 2005

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.