Re: git-feed-mail-list.sh
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- May 9, 2006, 00:19 UTC
- Message-ID
- <Pine.LNX.4.64.0605081715270.3718@g5.osdl.org>
- In-Reply-To
- <1147131877.2694.37.camel@shinybook.infradead.org>
On Tue, 9 May 2006, David Woodhouse wrote:
Show 10 quoted lines
>
> The remaining problem is that the invocation of 'date' doesn't work with
> new versions of coreutils. This...
>
> date=(${rest#*> })
> sec=${date[0]}; tz=${date[1]}
> dtz=${tz/+/+ }; dtz=${dtz/-/- }
> pdate="$(date -Rud "1970-01-01 UTC + $sec sec $dtz" 2>/dev/null)"
>
> ... doesn't work any more on FC-5, because: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.
Linus