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

[PATCH] fix gitk with lots of tags

From
JRJim Radford <radford@blackbean.org>
Date
Apr 6, 2006, 20:36 UTC
Message-ID
<20060406203637.GA15009@blackbean.org>
Hi Paul,

This fix allow gitk to be used on repositories with lots of tags. It bypasses git-rev-parse and passes its arguments to git-rev-list directly to avoid the command line length restrictions.

Signed-Off-By: Jim Radford <radford@blackbean.org>
-Jim
---
diff --git a/gitk b/gitk
index 26fa79a..40672fb 100755
--- a/gitk
+++ b/gitk
@@ -17,19 +17,11 @@ proc gitdir {} {
 }
 
 proc parse_args {rargs} {
-    global parsed_args
-
-    if {[catch {
-	set parse_args [concat --default HEAD $rargs]
-	set parsed_args [split [eval exec git-rev-parse $parse_args] "\n"]
-    }]} {
-	# if git-rev-parse failed for some reason...
-	if {$rargs == {}} {
-	    set rargs HEAD
-	}
-	set parsed_args $rargs
+    if {$rargs == {}} {
+        return HEAD
+    } else {
+	return $rargs
     }
-    return $parsed_args
 }
 
 proc start_rev_list {rlargs} {
Next: Jim Radford
Message 1 of 5 in “fix gitk with lots of tags”
  1. fix gitk with lots of tagsJim Radford, Apr 6, 2006
  2. [RESEND] [PATCH] fix gitk with lots of tagsJim Radford, Apr 18, 2006
  3. Linus TorvaldsApr 18, 2006
  4. Paul MackerrasApr 21, 2006
  5. Linus TorvaldsApr 21, 2006

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.