Re: Generate version file by hooks

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

 



Björn Hendriks schrieb:
> In fact my problem is not to find out the SHA1 of the last commit in a script 
> but to have that script called automatically each time git changes the 
> commit. My idea was to use the git hooks for that, but as I explained I 
> couldn't find hooks for all cases in which a commit changes.

In fact there are so many situations where the current commit changes. You
won't find enough hooks to catch all cases.

You better modify your build system to look for the current commit when it
is needed. That is *much* safer.

-- Hannes

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