gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] [newbie] Is it possible to put in a source file the


From: Robert Collins
Subject: Re: [Gnu-arch-users] [newbie] Is it possible to put in a source file the date of last tree commit?
Date: Wed, 04 Feb 2004 09:07:17 +1100

On Wed, 2004-02-04 at 05:18, David MENTRE wrote:
> Hello,
> 
> I'm new to GNU Arch, so excuse my newbie question. Other developers and
> myself are trying Arch on two free software projects (DemExp and
> Axiom). I've looked at the Wiki, Arch web pages and Google before asking
> my question, but it is still possible that I have missed something.
> 
> I would like, when doing a commit, to automatically put the commit date
> and time in a source file of my project. I would like something like
> $Date$ tag of CVS, but for the commit of the whole tree and not for the
> file containing the $Date$ tag in CVS. In other words, the file
> containing the hypothetical $arch-date$ tag would be modified and
> updated at each commit.
> 
> Is it possible to do that with GNU Arch? If yes, how?

No. The design to do so has been specced, but so far no one has
implemented it. It's ~ a day for a new-to-the-code programmer, 2-4 hours
for someone that knows it. Its (as cduffy says) arguably bad though,
because you'll introduce tree wide deltas to every commit, without any
gain: The usual cause for such headers is bug tracking, and the tree
version + latest log gives you that precisely (more precise than date
which can be muddied by time zones) upon checkout and update.

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]