On Tue, 9 May 2006, David Woodhouse wrote: > > Ah, right. Those are _commit_ IDs in that strange first line. I'll > reformat those to 'Commit:' and 'Parent:' for the mailing list. Right. That first line (that starts with "commit") lists the commit ID, and if you say "--parents", the commit ID's of the parents will be appended. So if you want to turn that into "Commit: <id>" and "Parent: <id>", you'll want to do something like this: git show --no-abbrev -C --patch-with-stat --pretty=fuller --parents $commit | sed '1 s/commit \([0-9a-f]*\)/Commit: \1\nParent: /' which should look pretty (count the spaces to make sure it lines up right with the other fields). (And if you ever want to report on merges, you'll want to change that a bit, but it should be reasonably close to the above) Linus - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html