Re: update @version in file

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

 



On 13/05/09 02:42 -0700, Jakub Narebski wrote:
> Andreas Ericsson <ae@xxxxxx> writes:
> > No, but see GIT-VERSION-GEN and "git help describe" for info on how to
> > replace such version tags using a script when you cut a release of your
> > project.

Couldn't Git be a little more friendly? 

You can choose to ignore an uncommitted file through the `git update-index 
--assume-unchanged` command. But AFAIK, Git doesn't allow one to ignore 
uncommitted _lines_ in tracked files. If this feature were implemented, a 
post commit hook could write in the latest commit hash and git wouldn't care.

Is this something that is worth pursuing?

      Dan
--
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]