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 10:03:20 +1100

On Wed, 2004-02-04 at 10:00, Tom Lord wrote:
>     > From: Robert Collins <address@hidden>
> 
>     > > 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: 
> 
> 
> Um... and with actual (severe) lossage.  People sometimes actually do
> merging, strangely enough.
> 
> One could make in-file keyword-expansions tree-local:  but with rather
> more work than you suggest and at signficant performance costs.

Oh yeah, $Date$ itself doesn't interest me at all. But one -could- do it
if needed.

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]