In clearcase I could just run
branchlocation>cleartool vtree <filename>
And a version tree would pop up showing me the merges for that file. I want to do the equivalent in git.
I think it is something to do with git read-tree
- but that doesn't look like what I'm looking for.
My question is: How to get a version tree for a file in git?
The
gitk
approach was mentioned in "Git Version Tree: Gitk"The closest I have seen from a ClearCase version tree in Git is in "Viewing full version tree in git", which took:
And transformed it with
crc8/GitVersionTree
into:You also have graph tools which could help, mentioned in "How do I build a version tree for a Git repository using LibGit2(Sharp)"