]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: add external diff file rename detection
authorTobias Boesch <tobias.boesch@miele.com>
Thu, 6 Nov 2025 14:42:11 +0000 (14:42 +0000)
committerJohannes Sixt <j6t@kdbg.org>
Thu, 6 Nov 2025 18:03:26 +0000 (19:03 +0100)
commitbdb1cf831251b16d174f742178caac181add87f4
tree6f10148302f77903a14a89c5faa7992bba4f21ec
parent4a6cc6a20eeb593f1ad0f60475a9867532d7c5d5
gitk: add external diff file rename detection

If a file is renamed between commits and an external diff is started
through gitk on the original or the renamed file name,
gitk is unable to open the renamed file in the external diff editor.
It fails to fetch the renamed file from git, because it fetches it
using its original path in contrast to using the renamed path of the
file.
Detect the rename and open the external diff with the original and
the renamed file instead of no file (fetch the renamed file path and
name from git) no matter if the original or the renamed file is
selected in gitk.

Signed-off-by: Tobias Boesch <tobias.boesch@miele.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
gitk