Hi, I am trying to visually show a file change history.
An easy way to do is to use gitk <file>, while it is in text mode.
I need a visual way, so I wrote following script:
git log --follow "$1"|awk '/commit/{print $2}'|while read ss; do git
difftool $ss^! "$1"; done
$1 would be my input for <path to file>
Suppose I have following commits related to $1
1b0e691e55caa8fd2b5dd6902f77c406fb68e648
d058c095f7e98a7ebe943c18f87ef087c723bb9f
c4d1769183ab6d852c624e71e6a0ca00dc3b6d13
But, when I run my script against $1, only these two commit are
displayed,
1b0e691e55caa8fd2b5dd6902f77c406fb68e648
c4d1769183ab6d852c624e71e6a0ca00dc3b6d13
this one
d058c095f7e98a7ebe943c18f87ef087c723bb9f
is somehow skipped, I guess it is because the ^! operator.
My intention is just to show the file change history in a visual tool,
for exampel my favorite one: kdiff3,
any alternative solution/help would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.