{"thread":{"id":"23195","subject":"[PATCH/RFC] gitk: Ignore limitdiffs option when displaying commit file list.","startedAt":"2010-03-27T01:17:51Z","lastAt":"2010-03-27T01:17:51Z","messageCount":1,"participants":["Tim Henigan"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"137924","messageId":"32c343771003261817o131ae413udb9dc579c936f5db@mail.gmail.com","threadId":"23195","inReplyTo":null,"subject":"[PATCH/RFC] gitk: Ignore limitdiffs option when displaying commit file list.","fromName":"Tim Henigan","fromEmail":"tim.henigan@gmail.com","sentAt":"2010-03-27T01:17:51Z","receivedAt":"2010-03-27T01:17:51Z","isPatch":true,"sender":{"key":"tim.henigan@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42022?v=4"},"body":"When gitk is invoked with a path argument (e.g. gitk gitk-git),\nthe path is used to filter the list of files displayed in the\nlower right window.  If a file does not start with the specified\nsubstring, it is not displayed.  This is counter-intuitive for\na couple reasons:\n  1) The files continue to be listed in the diff window.\n  2) Merge commits (i.e. commits with more than 1 parent still\n     show the complete list of files in the lower right since\n     these commits are processed by mergediff rather than\n     startdiff function.\n\nWith this change, the complete list of files affected by a\ncommit will always be shown in the lower right window.\n\nSigned-off-by: Tim Henigan <tim.henigan@gmail.com>\n---\n\nI noticed this issue recently when trying gitk.  After some research, I found\nthis thread [1] which explained the issue.  However, the operation still does\nnot seem consistent.  This patch fixes the \"problem\" that I encountered, but\nI can't help wondering:\n    1) I am breaking another feature?  Especially since the\n'$vfilelimit($curview) ne {}'\n        check is now ignored.\n    2) Can the limitdiffs option be completely removed?  If not, the behavior\n        of startdiff and mergediff should at least be made consistent.\n\n[1] http://thread.gmane.org/gmane.comp.version-control.git/133088\n\n gitk-git/gitk |   12 +-----------\n 1 files changed, 1 insertions(+), 11 deletions(-)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex 1f36a3e..518061e 100644\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -7450,17 +7450,7 @@ proc gettreediffline {gdtf ids} {\n \treturn [expr {$nr >= $max? 2: 1}]\n     }\n     close $gdtf\n-    if {$limitdiffs && $vfilelimit($curview) ne {}} {\n-\tset flist {}\n-\tforeach f $treediff {\n-\t    if {[path_filter $vfilelimit($curview) $f]} {\n-\t\tlappend flist $f\n-\t    }\n-\t}\n-\tset treediffs($ids) $flist\n-    } else {\n-\tset treediffs($ids) $treediff\n-    }\n+    set treediffs($ids) $treediff\n     unset treepending\n     if {$cmitmode eq \"tree\" && [llength $diffids] == 1} {\n \tgettree $diffids\n-- \n1.7.0.3.291.g5e4f6.dirty\n"}]}