threads / discuss / 21088

Compact view of history in gitk

Subject: Compact view of history in gitk

## tl;dr

5 messages between Sep 29, 2009 and Sep 30, 2009.

replies: 4people: 4as markdown or json

Yakup Akbay· Sep 29, 2009, 11:49 UTC · lore
Hi,
imagine a git history with many branches and many many commits in it,

which you cannot have a bird's eye view to the whole git history (consider linux kernel). What I'm looking for is to see is a graphical history representation with only the tip of all branches plus all merge bases drwan like a molecul shape, where all intermediate commits are replaced by a single symbol like '~'.

Think of the gitk version of the history below:
                  E-*-*-*-F
                 /
A-*-*-*-*-*-*-B-C-*-*-*-D
               \
                G-*-*-H-*-*-*-I
                       \
                        J-*-*-*-*-*-K
I want an output like this:
        E-~-F
       /
A-~-B-C-~-D
     \
      G-~-H-~-I
           \
            J-~-K
Is there an option in gitk (or in any other tool) to get such a view? 
Yakup
Johannes Sixt· Sep 29, 2009, 12:07 UTC · re: Yakup Akbay · lore

Re: Compact view of history in gitk

Yakup Akbay schrieb:
Show 22 quoted lines
> Think of the gitk version of the history below:
> 
>                  E-*-*-*-F
>                 /
> A-*-*-*-*-*-*-B-C-*-*-*-D
>               \
>                G-*-*-H-*-*-*-I
>                       \
>                        J-*-*-*-*-*-K
> 
> 
> I want an output like this:
> 
>        E-~-F
>       /
> A-~-B-C-~-D
>     \
>      G-~-H-~-I
>           \
>            J-~-K
> 
> Is there an option in gitk (or in any other tool) to get such a view?

I think, --simplify-by-decoration comes close, even though it may not be 100% what you describe.

-- Hannes
Yakup Akbay· Sep 29, 2009, 12:44 UTC · re: Johannes Sixt · lore

Re: Compact view of history in gitk

Johannes Sixt wrote:
Show 31 quoted lines
> Yakup Akbay schrieb:
>   
>> Think of the gitk version of the history below:
>>
>>                  E-*-*-*-F
>>                 /
>> A-*-*-*-*-*-*-B-C-*-*-*-D
>>               \
>>                G-*-*-H-*-*-*-I
>>                       \
>>                        J-*-*-*-*-*-K
>>
>>
>> I want an output like this:
>>
>>        E-~-F
>>       /
>> A-~-B-C-~-D
>>     \
>>      G-~-H-~-I
>>           \
>>            J-~-K
>>
>> Is there an option in gitk (or in any other tool) to get such a view?
>>     
>
> I think, --simplify-by-decoration comes close, even though it may not be
> 100% what you describe.
>
> -- Hannes
>   
Thanks Hannes, this is exactly what I need!
Yakup
Martin Langhoff· Sep 29, 2009, 15:21 UTC · re: Johannes Sixt · lore

Re: Compact view of history in gitk

On Tue, Sep 29, 2009 at 2:07 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> I think, --simplify-by-decoration comes close, even though it may not be
> 100% what you describe.
That is awesome.

Awesomer would be teaching gitk to expand (un-simplify) parts of it. Probably a pig of a project to do though :-/

m
-- 
 martin.langhoff@gmail.com
 martin@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
Dirk Süsserott· Sep 30, 2009, 18:41 UTC · re: Martin Langhoff · lore

Re: Compact view of history in gitk

Am 29.09.2009 17:21 schrieb Martin Langhoff:
Show 12 quoted lines
> On Tue, Sep 29, 2009 at 2:07 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
>> I think, --simplify-by-decoration comes close, even though it may not be
>> 100% what you describe.
> 
> That is awesome.
> 
> Awesomer would be teaching gitk to expand (un-simplify) parts of it.
> Probably a pig of a project to do though :-/
> 
> 
> 
> m

I'm proud to tell that one might also use gitk's dialog 'View -> Edit view... (F4)' and then activate the 'Simple history' checkbox. :-)

Gitk knows about that since Git v1.6.4-rc0.
However, it doesn't do the awesomer part.
Dirk

← back to recent threads