Re: Something like $Id$, $Revision$ or $Date$?

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

 



Hi,

On Mon, 10 Nov 2008, Michal Nazarewicz wrote:

> I would like the "$Id$" sequences to be updated automatically after a 
> commit (ie. without the need to check out).  (Besides I would prefer 
> $Date$ more but I can live with $Id$ I guess ;) ).

No, you don't.

At least most likely you do not want that behavior.  Typically, you have 
the $Id$ stuff in released versions to indicate what revision that version 
came from even if the files are no longer in a Git repository.

And you can have that without ever committing anything in-between, by 
using the export-subst attributes with git-archive.  Have a look at 
Documentation/gitattributes.txt (I agree it is underdocumented in 
git-archive.txt).

If that is not your use case, then it may be wise to let us Git people 
know what you _actually_ want (i.e. instead of asking for a specific 
solution, you could tell us what your problem is).

Ciao,
Dscho

--
To unsubscribe from this list: 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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux