Re: [ANNOUNCE] tig-0.14
- From
Jonas Fonseca <jonas.fonseca@gmail.com>
- Date
- Feb 15, 2009, 23:47 UTC
- Message-ID
- <2c6b72b30902151547q5bf183f2q1e846f261825671c@mail.gmail.com>
- In-Reply-To
- <op.uo9hiqqqa8ed4e@dellschleppa>
On Fri, Feb 13, 2009 at 00:14, Tilo Schwarz <tilo@tilo-schwarz.de> wrote:
> Then I have another question: Did you ever thought of a branch view, where > you can see, create, delete and merge the different branches which are in a > git project.
I have thought about it. The question is if a separate view is necessary or if the main view would do. For example, I sometimes use gitk when I need to rename branches or prepare for rebasing a patchset. One idea I would like to explore is to provide a compressed version of the main view, where "intermediate" commits are hidden, this way you could easily get a view of the relationship between branches.
The simplest thing to make it easier to experiment with new features would probably be to introduce a new external command specifier: %(prompt:<msg>), possibly with some regex for validation. Then you could add in your ~/.tigrc:
bind main A !git branch %(prompt:^wip/[a-z-]+$:Name) %(commit)
-- Jonas Fonseca