On Mon, 2006-05-08 at 17:19 -0700, Linus Torvalds wrote: > Well, you might choose to just not use "git-cat-file commit" but instead > ask git to format the thing for you. > > Ie you could probably more easily parse the data from something like > > git show -B --patch-with-stat --pretty=fuller $commit > > instead of using "git-cat-file commit $commit" and generating the stat and > diff manually. > > That way you get the dates etc pretty-printed for you by git. Aha, thanks. Git has learned to do a lot more since I first started hacking up a copy of git-log.sh to feed the mailing lists, and it even had to walk the commit tree manually :) The output of (the undocumented) '--pretty=fuller' is probably good enough that I can just feed the mailing list with it directly. I think I have to add the commit and the parent manually, but that's easy enough to do -- the commit is obviously known, and the parent is just $(git-rev-parse $commit^1). Anyone got any objections to switching the kernel git-commits-* lists to this format? -- dwmw2 - : 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