# Git graph with branch labels for all paths in text environment

6 messages from 2009-11-16 to 2009-11-23. Participants: rhlee, Santi Béjar, Bill Lear, Michael J Gruber, Jonas Fonseca.
Thread: https://gitlist.dev/t/21636

## rhlee, 2009-11-16 12:03

Subject: Git graph with branch labels for all paths in text environment
Message-ID: <1258373038892-4011651.post@n2.nabble.com>
URL: https://gitlist.dev/e/1258373038892-4011651.post%40n2.nabble.com

```

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, 2009-11-16 12:23

Subject: Re: Git graph with branch labels for all paths in text environment
Message-ID: <adf1fd3d0911160423q4e21126dm37be7838f0ce8379@mail.gmail.com>
URL: https://gitlist.dev/e/adf1fd3d0911160423q4e21126dm37be7838f0ce8379%40mail.gmail.com
In-Reply-To: <1258373038892-4011651.post@n2.nabble.com>

```
On Mon, Nov 16, 2009 at 1:03 PM, rhlee <richard@webdezign.co.uk> wrote:
>
> 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, 2009-11-16 13:30

Subject: Re: Git graph with branch labels for all paths in text environment
Message-ID: <19201.21478.127959.431877@lisa.zopyra.com>
URL: https://gitlist.dev/e/19201.21478.127959.431877%40lisa.zopyra.com
In-Reply-To: <adf1fd3d0911160423q4e21126dm37be7838f0ce8379@mail.gmail.com>

```
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?


Bill

```

## Michael J Gruber, 2009-11-16 15:27

Subject: Re: Git graph with branch labels for all paths in text environment
Message-ID: <4B016F72.7000001@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4B016F72.7000001%40drmicha.warpmail.net
In-Reply-To: <19201.21478.127959.431877@lisa.zopyra.com>

```
Bill Lear venit, vidit, dixit 16.11.2009 14:30:
> 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, 2009-11-21 17:50

Subject: Re: Git graph with branch labels for all paths in text environment
Message-ID: <2c6b72b30911210950m7f90f210saf3c32c1a3cbdebe@mail.gmail.com>
URL: https://gitlist.dev/e/2c6b72b30911210950m7f90f210saf3c32c1a3cbdebe%40mail.gmail.com
In-Reply-To: <1258373038892-4011651.post@n2.nabble.com>

```
On Mon, Nov 16, 2009 at 07:03, 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?
>
> [...]
> 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, 2009-11-23 09:56

Subject: Re: Git graph with branch labels for all paths in text environment
Message-ID: <1258970187042-4050140.post@n2.nabble.com>
URL: https://gitlist.dev/e/1258970187042-4050140.post%40n2.nabble.com
In-Reply-To: <2c6b72b30911210950m7f90f210saf3c32c1a3cbdebe@mail.gmail.com>

```


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.

```
