Skip to contentSkip to conversation

Compact view of history in gitk

DISCUSSION Yakup Akbay 4 participants 5 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 21 lines · Yakup Akbay

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
Quoted 1 line

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

#2 lore raw
Quoted 23 lines · Johannes Sixt
Quoted 21 lines · Yakup Akbay

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
Quoted 8 lines
Quoted 2 lines

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

#3 lore raw
In reply to Johannes Sixt
Quoted 2 lines · Johannes Sixt

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

Signature · 5 lines
 [email protected]
 [email protected] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
#4 lore raw

Am 29.09.2009 17:21 schrieb Martin Langhoff:

Quoted 12 lines · Johannes Sixt
Quoted 2 lines

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