{"thread":{"id":"9187","subject":"git log and --first-parent","startedAt":"2007-07-23T23:05:33Z","lastAt":"2007-07-26T20:30:10Z","messageCount":2,"participants":["Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"48371","messageId":"200707240105.33729.robin.rosenberg.lists@dewire.com","threadId":"9187","inReplyTo":null,"subject":"git log and --first-parent","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2007-07-23T23:05:33Z","receivedAt":"2007-07-23T23:05:33Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"\nI'm puzzled over the behavior of --first-parent. The documentations seems to imply\nthat only the first parent is followed, but when a filter is applied it seems (just guessing)\nthat the \"first\" parent is selected *after* filtering, a behaviour that I feel does not match\nthe documentation.\n\nShould the first-parent filter be applied first.\n\nExample:\n\n\tgit log --first-parent --pretty=format: --name-only v1.5.2|grep ^var.c|wc -l\n\ncounts four commits where var.c was changed, while\n\n\tgit log --first-parent --pretty=format: --name-only v1.5.2 -- var.c |wc -l\n\ngives me 23. \n\n-- robin\n"},{"id":"48738","messageId":"200707262230.10701.robin.rosenberg.lists@dewire.com","threadId":"9187","inReplyTo":"200707240105.33729.robin.rosenberg.lists@dewire.com","subject":"Re: git log and --first-parent","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2007-07-26T20:30:10Z","receivedAt":"2007-07-26T20:30:10Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"tisdag 24 juli 2007 skrev Robin Rosenberg:\n> \n> I'm puzzled over the behavior of --first-parent. The documentations seems to imply\n> that only the first parent is followed, but when a filter is applied it seems (just guessing)\n> that the \"first\" parent is selected *after* filtering, a behaviour that I feel does not match\n> the documentation.\n> \n> Should the first-parent filter be applied first.\n> \n> Example:\n> \n> \tgit log --first-parent --pretty=format: --name-only v1.5.2|grep ^var.c|wc -l\n> \n> counts four commits where var.c was changed, while\n> \n> \tgit log --first-parent --pretty=format: --name-only v1.5.2 -- var.c |wc -l\n> \n> gives me 23. \n> \n> -- robin\n\nNow, I also realize fast-forwards means --first-parent may not be as useful as I first\nhoped.\n\n-- robin\n"}]}