git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* log --graph --first-parent weirdness
@ 2008-06-04 15:00 Teemu Likonen
  2008-06-04 15:08 ` Teemu Likonen
  2008-06-04 17:12 ` Junio C Hamano
  0 siblings, 2 replies; 11+ messages in thread
From: Teemu Likonen @ 2008-06-04 15:00 UTC (permalink / raw)
  To: Adam Simpkins; +Cc: git

The output of "git log --graph --first-parent" seems weird. Maybe it's
because I don't understand everything but here's an example anyway:


$ git log --graph --pretty=oneline --abbrev-commit --decorate

M   2ba1dba... (refs/heads/master) Merge branch 'topic'
|\  
| * 432e062... (refs/heads/topic) Change from branch 'topic'
* | b762236... Change from branch 'master'
|/  
* d7fb80a... Initial commit


Normal --first-parent prints this:

$ git log --first-parent --pretty=oneline --abbrev-commit

2ba1dba... Merge branch 'topic'
b762236... Change from branch 'master'
d7fb80a... Initial commit


With --graph it goes:

$ git log --graph --first-parent --pretty=oneline --abbrev-commit

M   2ba1dba... Merge branch 'topic'
|\  
* | b762236... Change from branch 'master'
* | d7fb80a... Initial commit
 /


So, it prints the second parent line but it leads to nowhere. Try the
same with the git repository and you'll see a _lots_ of parallel branch
lines which seem to go nowhere.

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

end of thread, other threads:[~2008-06-05 18:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 15:00 log --graph --first-parent weirdness Teemu Likonen
2008-06-04 15:08 ` Teemu Likonen
2008-06-04 17:12 ` Junio C Hamano
2008-06-04 17:38   ` Teemu Likonen
2008-06-04 18:04     ` Adam Simpkins
2008-06-05  8:56       ` [PATCH] graph API: fix "git log --graph --first-parent" Adam Simpkins
2008-06-04 18:05     ` log --graph --first-parent weirdness Junio C Hamano
2008-06-05  1:37       ` Ping Yin
2008-06-05  9:28       ` Adam Simpkins
2008-06-05  9:50       ` Teemu Likonen
2008-06-05 18:31         ` Junio C Hamano

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).