Say I have a file in git called filex.code
, and I want to see the full code of the last x
versions of that file with each changed section highlighted -- all in one place. So an x
-paned commit history of filex.code
, almost as if I were doing an x
-paned diff, but viewing historical versions rather than merging from different branches.
The greater x
, the better. Crossplatform would be great, but any of the Big Three works. Being able to edit the latest version would also be great, but read-only visualization is plenty.
Note that this is different from a simple history of commits to a file, so the otherwise wonderful gitk path/to/file
(or SourceTree or whatever visual git client you love) isn't what I'm looking for. git log -p
also comes close, and its output tantalizingly includes all the information I'd want, just that it's all in a linear, almost "procedural" output format rather than a good, relatively non-hierarchical, visual one like your favorite three-paned GUI'd mergetool's.
(Edit: Another really cool option that ultimately still experiences the shortcomings of only showing each line's latest source & a linear output is git blame
, but it's cool.)
So I'm not precisely looking for setting up difftool either, I don't think. Rather than diffing two known versions of a file, I want to visualize x
iterations of historical edits to a single file.
Asking too much? Is this a WTFA (Write The "Fantastic" App [yourself]) situation?
Lesser alternative: Is there a three-paned mergetool that I can trick into displaying the last three commits of a single file?