Commit c585fd5
committed
gitk: added external diff file rename detection
* If a file was renamed between commits and an external diff is started
through gitk on the THE ORIGINAL FILE NAME (not the renamed one),
gitk was unable to open the renamed file in the external diff editor.
It failed to fetch the renamed file from git, because it fetched it
with the original path in contrast to using the renamed path
* gitk now detects the rename and opens the external diff with the
original and the RENAMED file instead of no file (it is able to
fetch the renamed file now from git with the renamed path/filename)
* Since git doesn't destinguish between move or rename this also works
for moved files
* Showing the renamed file doesn't work when THE RENAMED FILE is selected
in gitk and an external diff ist started on that file, because the
selected file is not renamed in that commit. It already IS the renamed
file.
Signed-off-by: Tobias Boeesch <tobias.boesch@miele.com>1 parent 388218f commit c585fd5
1 file changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3666 | 3666 | | |
3667 | 3667 | | |
3668 | 3668 | | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
3669 | 3690 | | |
3670 | 3691 | | |
3671 | 3692 | | |
| |||
3696 | 3717 | | |
3697 | 3718 | | |
3698 | 3719 | | |
3699 | | - | |
3700 | | - | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
| 3725 | + | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
3701 | 3730 | | |
3702 | 3731 | | |
3703 | 3732 | | |
| |||
0 commit comments