git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git log follow question
@ 2010-05-14  0:57 Albert Krawczyk
  2010-05-14  4:16 ` Bo Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Albert Krawczyk @ 2010-05-14  0:57 UTC (permalink / raw)
  To: git

Hi Everybody,

I'm having an issue understanding the way git log --follow works with git
log --parents

When I run 
git log --parents --pretty=format:Commit:%H%nParent:%P%n%n alloc.c
I get: 
Commit:4b25d091ba53c758fae0096b8c0662371857b9d9
Parent:100c5f3b0b27ec6617de1a785c4ff481e92636c1

Commit:100c5f3b0b27ec6617de1a785c4ff481e92636c1
Parent:2c1cbec1e2f0bd7b15fe5e921d287babfd91c7d3

Commit:2c1cbec1e2f0bd7b15fe5e921d287babfd91c7d3
Parent:579d1fbfaf25550254014fa472faac95f88eb779

Commit:579d1fbfaf25550254014fa472faac95f88eb779
Parent:855419f764a65e92f1d5dd1b3d50ee987db1d9de

Commit:855419f764a65e92f1d5dd1b3d50ee987db1d9de
Parent:

When I try to run git log --parents --follow I get this:
git log --parents --follow --pretty=format:Commit:%H%nParent:%P%n%n alloc.c

Commit:4b25d091ba53c758fae0096b8c0662371857b9d9
Parent:75b44066f3ed7cde238cdea1f0bf9e2f1744c820

Commit:100c5f3b0b27ec6617de1a785c4ff481e92636c1
Parent:2c1cbec1e2f0bd7b15fe5e921d287babfd91c7d3

Commit:2c1cbec1e2f0bd7b15fe5e921d287babfd91c7d3
Parent:f948792990f82a35bf0c98510e7511ef8acb9cd3

Commit:579d1fbfaf25550254014fa472faac95f88eb779
Parent:446c6faec69f7ac521b8b9fc2b1874731729032f

Commit:855419f764a65e92f1d5dd1b3d50ee987db1d9de
Parent:64e86c57867593ba0ee77a7b0ff0eb8e9d4d8ed5

As you can see git log --parents and git log --follow --parents produce very
different results, and as far as I can tell they should produce identical
outputs. 

Could somebody tell me if I'm doing something wrong with the syntax? Or have
I stumbled onto a quirk I fail to understand?

Thanks,
Albert 

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

end of thread, other threads:[~2010-05-26 14:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-14  0:57 Git log follow question Albert Krawczyk
2010-05-14  4:16 ` Bo Yang
2010-05-14  4:37 ` Jeff King
2010-05-14 14:50   ` Linus Torvalds
2010-05-14 15:19     ` Martin Langhoff
2010-05-14 15:29       ` Linus Torvalds
     [not found]       ` <22729_1273851106_4BED6CE2_22729_6897_1_alpine.LFD.2.00.1005140827250.3711@i5.linux-foundation.org>
2010-05-14 22:39         ` Albert Krawczyk
2010-05-25  9:31     ` Jeff King
2010-05-25 18:49       ` Linus Torvalds
2010-05-26  5:58         ` Jeff King
2010-05-26 14:40           ` Linus Torvalds
     [not found] ` <21464_1273811837_4BECD37D_21464_745_1_20100514043704.GC6075@coredump.intra.peff.net>
2010-05-14  4:43   ` Albert Krawczyk

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