
On Tuesday 26 April 2011 16:04:55, Nick Bowler wrote:
On 2011-04-26 15:51 +0200, Daniel Fischer wrote:
On Tuesday 26 April 2011 15:35:42, Ivan Lazar Miljenovic wrote:
How do you "see" how git branches are related to each other?
To some extent, you can see such a relation in gitk. For mercurial, hg glog also shows a bit. I suppose there's also something to visualise branches in bazaar, but I've never used that, so I don't know.
So, with gitk/glog, you can see that foo branched off bar after commit 0de8793fa1bc..., then checkout/update to that commit [or bar's head], checkout/update to foo's head/tip and compare.
No need to do a checkout; gitk can visualize any or all branches of the repository simultaneously.
Yes, at least if you're only interested in the genealogy. When I think about how branches are related, I think of contents at least as much as of genealogy. Can gitk show the code next to each other? I wouldn't be surprised, but I haven't yet found a way to do it (but I've only taken a couple of short looks, so that doesn't say much).