|
From: | Paul Eggert |
Subject: | Re: [Help-tar] [PATCH] Add --clamp-mtime option |
Date: | Thu, 04 Jun 2015 17:02:15 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Jérémy Bobbio wrote:
We use BUILD_DATE="$(dpkg-parsechangelog -S Date)" to get the time of the latest debian/changelog entry. Other projects could use BUILD_DATE="$(git log -1 --pretty="%cd")".
Hah! I use "git log -1 --format='tformat:%ct'" for this situation in the tzcode distribution. Great minds think (nearly) alike.
I guess I'm not still seeing why it's a win to add an option to tar, since we seem to have a solution that doesn't involve messing with tar.
[Prev in Thread] | Current Thread | [Next in Thread] |