git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* How to restrict gitk to show only branch/merge commits?
@ 2009-05-06  7:20 Josef Wolf
  2009-05-06  7:42 ` Andreas Ericsson
  2009-05-06  7:51 ` Jakub Narebski
  0 siblings, 2 replies; 3+ messages in thread
From: Josef Wolf @ 2009-05-06  7:20 UTC (permalink / raw
  To: git

Hello,

I would like gitk to show me only the heads, branch-points and
merge-points of branches.

For example, given a history like this:

                   d...e--F--g...h--H
                  /        \
 a1--a2...an--b--C          N--o...p--P
                  \        /
                   i...j--K--l...m--M

I would like to see only

 - a1     because it has no parent
 - C,F,K  because they are reachable from multiple heads
 - N      because it has multiple parents
 - H,M,P  because they are heads

Ideally, there would be a possibility to add some "context" to the
list of commits to be shown: with $context==1, all the commits shown
in the above history would be shown, but the commits indicated by
the triple-dots would be omitted.

The reason is that I have some repositories with several really long
linear history.  It is hard to get a global overview about the branch
history if you have to scroll constantly.

Is something like that possible with gitk?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to restrict gitk to show only branch/merge commits?
  2009-05-06  7:20 How to restrict gitk to show only branch/merge commits? Josef Wolf
@ 2009-05-06  7:42 ` Andreas Ericsson
  2009-05-06  7:51 ` Jakub Narebski
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Ericsson @ 2009-05-06  7:42 UTC (permalink / raw
  To: Josef Wolf, git

Josef Wolf wrote:
> Hello,
> 
> I would like gitk to show me only the heads, branch-points and
> merge-points of branches.
> 
> For example, given a history like this:
> 
>                    d...e--F--g...h--H
>                   /        \
>  a1--a2...an--b--C          N--o...p--P
>                   \        /
>                    i...j--K--l...m--M
> 
> I would like to see only
> 
>  - a1     because it has no parent
>  - C,F,K  because they are reachable from multiple heads
>  - N      because it has multiple parents
>  - H,M,P  because they are heads
> 
> Ideally, there would be a possibility to add some "context" to the
> list of commits to be shown: with $context==1, all the commits shown
> in the above history would be shown, but the commits indicated by
> the triple-dots would be omitted.
> 
> The reason is that I have some repositories with several really long
> linear history.  It is hard to get a global overview about the branch
> history if you have to scroll constantly.
> 
> Is something like that possible with gitk?

Not today, no. I'm not sure how hard it would be to add, and as I'm a
tcl-analphabet the chances of successfully implementing it marginally
increases if I don't work on it.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Register now for Nordic Meet on Nagios, June 3-4 in Stockholm
 http://nordicmeetonnagios.op5.org/

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to restrict gitk to show only branch/merge commits?
  2009-05-06  7:20 How to restrict gitk to show only branch/merge commits? Josef Wolf
  2009-05-06  7:42 ` Andreas Ericsson
@ 2009-05-06  7:51 ` Jakub Narebski
  1 sibling, 0 replies; 3+ messages in thread
From: Jakub Narebski @ 2009-05-06  7:51 UTC (permalink / raw
  To: Josef Wolf; +Cc: git

Josef Wolf <jw@raven.inka.de> writes:

> I would like gitk to show me only the heads, branch-points and
> merge-points of branches.
> 
> For example, given a history like this:
> 
>                    d...e--F--g...h--H
>                   /        \
>  a1--a2...an--b--C          N--o...p--P
>                   \        /
>                    i...j--K--l...m--M
> 
> I would like to see only
> 
>  - a1     because it has no parent
>  - C,F,K  because they are reachable from multiple heads
>  - N      because it has multiple parents
>  - H,M,P  because they are heads
> 
> Ideally, there would be a possibility to add some "context" to the
> list of commits to be shown: with $context==1, all the commits shown
> in the above history would be shown, but the commits indicated by
> the triple-dots would be omitted.
> 
> The reason is that I have some repositories with several really long
> linear history.  It is hard to get a global overview about the branch
> history if you have to scroll constantly.
> 
> Is something like that possible with gitk?

I am not sure if it would give you exactly what you want, but if I
understand correctly gitk accepts arguments for git-log (and you can
set them somewhere in options, too).  Take a look at section "History
Simplification" in git-log/git-rev-list manpage, in particular at
option '--simplify-by-decoration' there.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-06  7:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06  7:20 How to restrict gitk to show only branch/merge commits? Josef Wolf
2009-05-06  7:42 ` Andreas Ericsson
2009-05-06  7:51 ` Jakub Narebski

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).