Skip to content

Commit 90a7792

Browse files
jlehmannpaulusmack
authored andcommitted
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>
1 parent 5497f7a commit 90a7792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7225,7 +7225,7 @@ proc diffcmd {ids flags} {
72257225
set cmd [concat | git diff-index --cached $flags]
72267226
if {[llength $ids] > 1} {
72277227
# comparing index with specific revision
7228-
if {$i == 0} {
7228+
if {$j == 0} {
72297229
lappend cmd -R [lindex $ids 1]
72307230
} else {
72317231
lappend cmd [lindex $ids 0]

0 commit comments

Comments
 (0)