Re: [EGIT PATCH] Branch bar in resource history.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Robin,

Good idea, but I wonder if we wouldn't be better off trying too keep compact
and do this decoration in the first bar instead, either as an icon or just text. I only have 15 inches of preciousss screen space. Compare to what you did with the compare view in removing those unnecessary directory levels that
really only wasted space. That was very good.
My first attempt was to put the current branch name in the first bar, before the path, like:
[mybranch]/myproject

But from what I noticed after a little debuging, the history page API doesn't allow us to change this value, probably because of the "Show Previous Histories" where this value is also stored. We would need to change parent classes to make it possible.

I also tried to add the branch name as an icon, but I didn't really like it there. In the end I accepted to lose some space, especially because when I'm searching for something I end up maximizing the history page. And I also started thinking about other uses for it, to convince me that another bar there could have some use :)
. maybe put the SHA1 there, like in gitk.
. show the bar in a different color when some filter is applied to help avoid confusion when you don't see a commit there.
. put a trail for some common operation.

but, unless someone really sees the need for something, I'm not seriously considering any of it right now...

Another attempt I made was to put a vertical bar on the left, but it would require the installation of some extra eclipse package to write the text in the vertical. I saw that eclipse can also use the java graphics api to render things, so if people think it would be the best option, I can give it a try.


Another idea would be to allow the user to filter which branches and I think
one could combine this indicator with that functionality through e.g. a poup menu.
This would be really nice :)

Some time ago I wrote a quick hack to show only the commits in the current branch and it's been very useful for us. It isn't implemented the proper way but I consider it simple and safe and others may find it useful too... I'll review it later and post a patch for you to decide.

The green color on the indicator sugests something is "ok"?
It was my attempt to make a branch icon following eclipse guidelines :) It will be more obvious when we have the "list references" icon (get a look on gitk: file->list references). It was intended as an icon to designate branch.

[]s,
Roger.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux