gitk: Fix diffing committed -> staged (typo in diffcmd)
When highlighting a commit, using the context menu over the staged changes and then selecting "Diff this -> selected" the diff was empty. The same happened when highlighting the staged changes and using "Diff selected -> this" over a commit. The reason was a copy/paste error in [diffcmd]. This fixes it. Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Jens Lehmann committed
Oct 27, 2009 at 18:13 UTC
90a77925417646041ac408e591f969d7477be0a9
1 file changed
+1
-1
gitk
+1
-1
@@ -7225,7 +7225,7 @@ proc diffcmd {ids flags} {
7225
set cmd [concat | git diff-index --cached $flags]
7226
if {[llength $ids] > 1} {
7227
# comparing index with specific revision
7228
- if {$i == 0} {
7228
+ if {$j == 0} {
7229
lappend cmd -R [lindex $ids 1]
7230
} else {
7231
lappend cmd [lindex $ids 0]