git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to display a simplified graph of commits ?
@ 2010-03-29 13:24 David Madore
  2010-03-29 13:57 ` Santi Béjar
  2010-03-29 14:01 ` Johannes Sixt
  0 siblings, 2 replies; 3+ messages in thread
From: David Madore @ 2010-03-29 13:24 UTC (permalink / raw)
  To: git

Hi list,

I'd like to know if the following is possible and, if not, I'd like to
suggest it as a possible useful addition to the git frontend/graphical
tools: display a simplified graph of "interesting" commits showing the
relationship between a specified set of commits.

In other words, I have a set of revisions that I'm interested in, and
I'd like to graphically display the relationships (merges, branches)
between them, omitting the cruft of intervening irrelevant commits.

A possible mathematical definition of what I'd like would be this:
given a finite set S of commits, consider the subgraph G (of the full
commit graph) consisting of the union of all possible paths leading
from a latest-common-ancestor of any subset of S to an
earliest-common-descendant; define a commit to be "interesting" (wrt
S) when it has more than one ancestor or more than one child _in the
subraph G_ (i.e., it is either a branch or a merge point in the
subgraph), or, of course, when it itself in S; I'd like to display the
subgraph G by displaying all its interesting commits and the sequences
of edges between them (but not all the intermediate commits).

(The above, of course, is just one example of a rigorous definition of
what an "interesting" commit might be.  There may be others, and
obviously I don't care about using exactly that one.)

The point is that I want to understand the code flow among branches
containing certain revisions in a git tree, and who merged what--and
there are too many intermediate commits to make anything useful of the
standard display of gitk.  Restricting a view to a certain subset of
the files helps a lot, but it is still not sufficient as it is neither
true that every commit I'm interested in touches this or that subset
of the files, nor the converse.

Is there another way I can restrict the set of commits to display,
with any kind of graphical tool like gitk?

-- 
     David A. Madore
   ( http://www.madore.org/~david/ )

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

* Re: how to display a simplified graph of commits ?
  2010-03-29 13:24 how to display a simplified graph of commits ? David Madore
@ 2010-03-29 13:57 ` Santi Béjar
  2010-03-29 14:01 ` Johannes Sixt
  1 sibling, 0 replies; 3+ messages in thread
From: Santi Béjar @ 2010-03-29 13:57 UTC (permalink / raw)
  To: David Madore; +Cc: git

On Mon, Mar 29, 2010 at 3:24 PM, David Madore <david+news@madore.org> wrote:

[...]

>
> Is there another way I can restrict the set of commits to display,
> with any kind of graphical tool like gitk?

You can use gitk --simplify-by-decoration. It only shows the commits
with tags, plus some commits to make a meaningful graph. But it does
not work with a generic list of commits, the list of interesting
commits is always those with tags.

HTH,
Santi

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

* Re: how to display a simplified graph of commits ?
  2010-03-29 13:24 how to display a simplified graph of commits ? David Madore
  2010-03-29 13:57 ` Santi Béjar
@ 2010-03-29 14:01 ` Johannes Sixt
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Sixt @ 2010-03-29 14:01 UTC (permalink / raw)
  To: David Madore; +Cc: git

Am 3/29/2010 15:24, schrieb David Madore:
> I'd like to know if the following is possible and, if not, I'd like to
> suggest it as a possible useful addition to the git frontend/graphical
> tools: display a simplified graph of "interesting" commits showing the
> relationship between a specified set of commits.

git log --graph --simplify-by-decoration

You have to tag the interesting commits to show up in this chart.

-- Hannes

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

end of thread, other threads:[~2010-03-29 14:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29 13:24 how to display a simplified graph of commits ? David Madore
2010-03-29 13:57 ` Santi Béjar
2010-03-29 14:01 ` Johannes Sixt

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 NNTP newsgroup(s).