mirror of
https://github.com/git/git.git
synced 2024-11-06 01:03:02 +01:00
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>
This commit is contained in:
parent
5497f7a23a
commit
90a7792541
1 changed files with 1 additions and 1 deletions
2
gitk
2
gitk
|
@ -7225,7 +7225,7 @@ proc diffcmd {ids flags} {
|
|||
set cmd [concat | git diff-index --cached $flags]
|
||||
if {[llength $ids] > 1} {
|
||||
# comparing index with specific revision
|
||||
if {$i == 0} {
|
||||
if {$j == 0} {
|
||||
lappend cmd -R [lindex $ids 1]
|
||||
} else {
|
||||
lappend cmd [lindex $ids 0]
|
||||
|
|
Loading…
Reference in a new issue