]> git.ipfire.org Git - thirdparty/git.git/commit - graph.c
graph API: use a new color when starting a brand new column
authorAdam Simpkins <simpkins@facebook.com>
Tue, 18 Aug 2009 21:41:12 +0000 (14:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Aug 2009 06:32:28 +0000 (23:32 -0700)
commit91e50b2c0a3bfa818454590fcc6a1ef70c3c58d0
treeab38c51aa632cf5e143d902176fa069d04d4608a
parentf3a87d922a0333a56b5a912440aa324883019d81
graph API: use a new color when starting a brand new column

Use a new color for commits that don't have any previously printed
children.  The following command demonstrates the changes:

  git log --graph --pretty=tformat:'%h %s%n' -7 481c7a6 18b0793

Now the two independent lines of development are displayed with
different colors, instead of both using the same color.

Signed-off-by: Adam Simpkins <simpkins@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
graph.c