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

[PATCH] gitk: Handle msysGit version during version comparisons

From
Pat Thoyts <patthoyts@users.sourceforge.net>
Date
May 18, 2009, 21:46 UTC
Message-ID
<87hbzirso6.fsf@users.sourceforge.net>
  msysGit generates version strings with text appended which cannot
  be used with vcompare. Limit git_version to the first three digits
  which are the real git version.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
---
 gitk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitk b/gitk
index 0804e6e..1855390 100755
--- a/gitk
+++ b/gitk
@@ -11152,7 +11152,7 @@ set nullid2 "0000000000000000000000000000000000000001"
 set nullfile "/dev/null"
 
 set have_tk85 [expr {[package vcompare $tk_version "8.5"] >= 0}]
-set git_version [lindex [exec git version] end]
+set git_version [join [lrange [split [lindex [exec git version] end] .] 0 2] .]
 
 set runq {}
 set history {}
-- 
1.6.3.msysgit.0
Next: Paul Mackerras
Message 1 of 5 in “gitk: Handle msysGit version during version comparisons”
  1. gitk: Handle msysGit version during version comparisonsPat Thoyts, May 18, 2009
  2. Paul MackerrasMay 18, 2009
  3. Johannes SchindelinMay 19, 2009
  4. Michael J GruberMay 19, 2009
  5. Pat ThoytsMay 19, 2009

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.