graph API: don't print branch lines for uninteresting merge parents
commit37a75abc985a25a0612c2c176ed35d438722752d
authorAdam Simpkins <adam@adamsimpkins.net>
Sat, 24 May 2008 02:24:11 +0000 (23 19:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 May 2008 18:43:22 +0000 (25 11:43 -0700)
treeaabc26028c98601ca65361a4e22e44aa6ca9dd20
parent2ecbd0a0db0f9d59a5df02a6daeb87e611171fa4
graph API: don't print branch lines for uninteresting merge parents

Previously, the graphing code printed lines coming out of a merge commit
for all of its parents, even if some of them were uninteresting.  Now it
only prints lines for interesting commits.

For example, for a merge commit where only the first parent is
interesting, the code now prints:

  *  merge commit
  *  interesting child

instead of:

  M  merge commit
  |\
  *  interesting child

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
graph.c