So I have a file called one.txt that I have been modifying over the years on master branch. gitk one.txt will show the entire history of that one particular file. However after I changed one.txt => two.txt, gitk two.txt doesn’t show any change before the rename.
I tried gitk --follow two.txt, but only gave the comment for each commit, but not the actual file change information.
I know I can do git log --follow two.txt, but you have to gitk each SHA1 value to each what is being changed.
So any tips?
The problem is
gitk --followwill for now differ fromgit log --follow, considering, according to Linux Torvalds,--followis mainly a hack:Another difference, the support of pathspec magic: Before Git 2.42 (Q3 2023), "
git [-c log.follow=true] log [--follow] ':(glob)f**'" used to barf.See commit 8260bc5, commit 9eac595, commit 8e32caa (01 Jun 2023) by Jeff King (
peff).(Merged by Junio C Hamano —
gitster— in commit de00f4b, 20 Jun 2023)