threads / discuss / 21636

Git graph with branch labels for all paths in text environment

Subject: Git graph with branch labels for all paths in text environment

## tl;dr

6 messages between Nov 16, 2009 and Nov 23, 2009.

replies: 5people: 5as markdown or json

rhlee· Nov 16, 2009, 12:03 UTC · lore
Hi git forum,

Is there anyway to to view a text based git grah that shows all paths with the branch labels? Like a on gitk but ncurses based?

I can get all paths in git log --graph, but I can't get the branch labels.
I can get all branch labels in tig, but only for the current branch.

Is there any feature that has the best of both worlds in a text-based environment? I ask to text-based as I only have shell access to the server, an X Windows environment.

Regards,
Richard
-- 
View this message in context: http://n2.nabble.com/Git-graph-with-branch-labels-for-all-paths-in-text-environment-tp4011651p4011651.html
Sent from the git mailing list archive at Nabble.com.
Santi Béjar· Nov 16, 2009, 12:23 UTC · re: rhlee · lore

Re: Git graph with branch labels for all paths in text environment

On Mon, Nov 16, 2009 at 1:03 PM, rhlee <richard@webdezign.co.uk> wrote:
Show 5 quoted lines
>
> Hi git forum,
>
> Is there anyway to to view a text based git grah that shows all paths with
> the branch labels? Like a on gitk but ncurses based?
For third-party tools you can check:
http://git-scm.com/tools
>
> I can get all paths in git log --graph, but I can't get the branch labels.
Have you tried  --decorate?
I have an alias for this:
alias.logk = log --graph --pretty=oneline --abbrev-commit --decorate

HTH, Santi

Bill Lear· Nov 16, 2009, 13:30 UTC · re: Santi Béjar · lore

Re: Git graph with branch labels for all paths in text environment

On Monday, November 16, 2009 at 13:23:10 (+0100) Santi Béjar writes:
Show 7 quoted lines
>On Mon, Nov 16, 2009 at 1:03 PM, rhlee <richard@webdezign.co.uk> wrote:
>> Is there anyway to to view a text based git grah that shows all paths with
>> the branch labels? Like a on gitk but ncurses based?
>
>For third-party tools you can check:
>
>http://git-scm.com/tools
Anything that can print this?:
                                       H---I---J topicB
                                      /
                             E---F---G  topicA
                            /
               A---B---C---D  master

I've always liked the text-based format that keeps things in-line, as above. Very readable. I thought someone on this list posted something about a tool that could produce such graphs from reasonably-sized git repos. Anyone have such a thing?

Bill
Michael J Gruber· Nov 16, 2009, 15:27 UTC · re: Bill Lear · lore

Re: Git graph with branch labels for all paths in text environment

Bill Lear venit, vidit, dixit 16.11.2009 14:30:
Show 21 quoted lines
> On Monday, November 16, 2009 at 13:23:10 (+0100) Santi Béjar writes:
>> On Mon, Nov 16, 2009 at 1:03 PM, rhlee <richard@webdezign.co.uk> wrote:
>>> Is there anyway to to view a text based git grah that shows all paths with
>>> the branch labels? Like a on gitk but ncurses based?
>>
>> For third-party tools you can check:
>>
>> http://git-scm.com/tools
> 
> Anything that can print this?:
> 
>                                        H---I---J topicB
>                                       /
>                              E---F---G  topicA
>                             /
>                A---B---C---D  master
> 
> I've always liked the text-based format that keeps things in-line, as
> above.  Very readable.  I thought someone on this list posted
> something about a tool that could produce such graphs from
> reasonably-sized git repos.  Anyone have such a thing?

You really mean horizontally? I know those wide screen monitors are becoming ubiquitious, but still...

Or are you more after the "in-line" part in the sense that "each branch is on its line"? This is a bit difficult to define, though (the graph above is linear, e.g.).

Michael
Jonas Fonseca· Nov 21, 2009, 17:50 UTC · re: rhlee · lore

Re: Git graph with branch labels for all paths in text environment

On Mon, Nov 16, 2009 at 07:03, rhlee <richard@webdezign.co.uk> wrote:
Show 5 quoted lines
> Is there anyway to to view a text based git grah that shows all paths with
> the branch labels? Like a on gitk but ncurses based?
>
> [...]
> I can get all branch labels in tig, but only for the current branch.

You can browse all branches by using: tig --all However, the graph drawing is rather poor for complex git histories.

-- 
Jonas Fonseca
rhlee· Nov 23, 2009, 09:56 UTC · re: Jonas Fonseca · lore

Re: Git graph with branch labels for all paths in text environment

Jonas Fonseca wrote:
> 
> You can browse all branches by using: tig --all
> 

Thanks this great as this saves me from quitting tig to view all branch histories.

Jonas Fonseca wrote:
> 
> However, the graph drawing is rather poor for complex git histories.
> 
I'm working on 3-4 current branches and it's fine for me.
Thanks,
Richard
-- 
View this message in context: http://n2.nabble.com/Git-graph-with-branch-labels-for-all-paths-in-text-environment-tp4011651p4050140.html
Sent from the git mailing list archive at Nabble.com.

← back to recent threads