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

Re: [BUG] gitk: breaks with both version and file limits

From
Paul Mackerras <paulus@samba.org>
Date
Apr 17, 2006, 00:38 UTC
Message-ID
<17474.58218.187884.491028@cargo.ozlabs.ibm.com>
In-Reply-To
<7vslodp4sk.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano writes:
> The real issue is "git-rev-list --boundary ran..ge -- path" does
> not show boundary.  I am not sure if it even worked in the past;
> will take a look.

Ah... and in addextraid I wasn't appending a 0 to commitlisted, so commitlisted got out of sync with the displayorder list. I just committed this patch, which keeps them in sync. I think that's preferable to working around the missing elements.

Paul.
diff --git a/gitk b/gitk
index f88c06e..87e7162 100755
--- a/gitk
+++ b/gitk
@@ -1116,11 +1116,12 @@ proc layoutrows {row endrow last} {
 
 proc addextraid {id row} {
     global displayorder commitrow commitinfo
-    global commitidx
+    global commitidx commitlisted
     global parentlist childlist children
 
     incr commitidx
     lappend displayorder $id
+    lappend commitlisted 0
     lappend parentlist {}
     set commitrow($id) $row
     readcommit $id
@@ -1500,7 +1501,7 @@ proc drawcmittext {id row col rmx} {
 proc drawcmitrow {row} {
     global displayorder rowidlist
     global idrowranges idrangedrawn iddrawn
-    global commitinfo commitlisted parentlist numcommits
+    global commitinfo parentlist numcommits
 
     if {$row >= $numcommits} return
     foreach id [lindex $rowidlist $row] {
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “[BUG] gitk: breaks with both version and file limits”
  1. Yann DirsonApr 16, 2006
  2. Junio C HamanoApr 16, 2006
  3. Paul MackerrasApr 17, 2006
  4. rev-list --boundary: show boundary commits even when limited otherwise.Junio C Hamano, Apr 17, 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.