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

[PATCH 1/2] Build GIT_VERSION from VERSION, PATCHLEVEL, and SUBLEVEL variables.

From
MAMartin Atukunda <matlads@dsmagic.com>
Date
Nov 17, 2005, 13:25 UTC
Message-ID
<11322339373013-git-send-email-matlads@dsmagic.com>
In-Reply-To
<11322339372137-git-send-email-matlads@dsmagic.com>

This will allow scripts to be able to determine which git release they target (or require).

Signed-Off-By: Martin Atukunda <matlads@dsmagic.com>
---
 Makefile |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

applies-to: 1e3fcf60526c196a46433e6947c9104ca236f230 968e5b59fba66a1b146c643e5161978c787d4273

diff --git a/Makefile b/Makefile
index ebff990..74c6b9e 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,11 @@
 # Define USE_STDEV below if you want git to care about the underlying device
 # change being considered an inode change from the update-cache perspective.
 
-GIT_VERSION = 0.99.9.GIT
+VERSION = 0
+PATCHLEVEL = 99
+SUBLEVEL = 9
+EXTRAVERSION = GIT
+GIT_VERSION=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL).$(EXTRAVERSION)
 
 # CFLAGS and LDFLAGS are for the users to override from the command line.
 
---
0.99.9.GIT
Previous: Martin AtukundaNext: Martin Atukunda
Message 2 of 16 in “Add .git/version”
  1. Add .git/versionMartin Atukunda, Nov 17, 2005
  2. 1/2 Build GIT_VERSION from VERSION, PATCHLEVEL, and SUBLEVEL variables.Martin Atukunda, Nov 17, 2005
  3. 2/2 Make init-db record the version in $GIT_DIR/version when creating repo.Martin Atukunda, Nov 17, 2005
  4. Johannes SchindelinNov 17, 2005
  5. Martin AtukundaNov 17, 2005
  6. Johannes SchindelinNov 17, 2005
  7. Josef WeidendorferNov 17, 2005
  8. Josef WeidendorferNov 17, 2005
  9. Andreas EricssonNov 17, 2005
  10. Josef WeidendorferNov 17, 2005
  11. Martin AtukundaNov 17, 2005
  12. Add .git/version (Take 2)Martin Atukunda, Nov 17, 2005
  13. Junio C HamanoNov 17, 2005
  14. Linus TorvaldsNov 17, 2005
  15. Johannes SchindelinNov 17, 2005
  16. Junio C HamanoNov 18, 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.