3

I switched to gitg from gitk to visualize my git tree. There is one thing I can't stand.

Let's say I have two branches (dev, master) that look like this:

enter image description here

Anytime I checkout to master the visualization changes:

enter image description here

That means that the branch I am currently on is on the top of the tree. In other words, I can't see the dev branch at the moment.

That is the same default behavouir as gitk has, but it can be changed there using --all attribute, which makes it the way I want. Can that be achieved using gitg?

tsusanka
  • 4,801
  • 7
  • 36
  • 42

1 Answers1

4

That thread mentions the possibility to open gitg in "All Branches" mode:

gitg -- --all

It also mentions that it might not be working in the current version of gitg though (the bug report is still unconfirmed)

As the OP aGr mentions, there is an option "All branches" in the Branch combo box:

gitg all branches

But it isn't a persistent choice after a checkout.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • That works for me! I have version 0.2.4 though. As well I noticed a 'all branches' option in the branch selectbox, which I missed before. The thing is that if I checkout somewhere using gitg, the gitg will change the visualisation, so then I have to change the branch in selectbox to 'all branches' againm if I want to. Hm, maybe I am just not used to that behaviour... – tsusanka Mar 29 '13 at 14:46
  • @aGr understood. At least, that command line option is a step in the right direction. – VonC Mar 29 '13 at 14:48
  • @aGr I have included the option you mention in the answer for more visibility. – VonC Mar 29 '13 at 14:53
  • I've been using the gitg with this option for a few days, sometimes I switch to particular branch, where the visualisation is much clearer. I like the behavouir. Thx for your contrubution. – tsusanka Mar 31 '13 at 08:46
  • This does not work for me. As the referenced email indicates, I get "select branch" in the pulldown, and nothing showing in the window (until I select a branch). Version (from Debian 8.2) is 0.2.7-3. – Liam Dec 24 '15 at 21:33
  • @liam strange. Since this answer has more than 2 years, you could ask a new question for that more recent behavior. – VonC Dec 24 '15 at 21:42