Re: committer-date-is-author-date flag removes email in "Commit"

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

 



Phillip Wood <phillip.wood123@xxxxxxxxx> writes:

>> I wonder if we even needed to do the original change to begin with
>> (stopping to export means not giving information to the hooks), but
>> that is a separate matter.
>
> I think the main motivation was to stop polluting the environment of
> exec commands

As long as the information that used to be exported can be learned
by the hook script when/if it wants to (how?  read the original
commit object with "git show -s --format=..."?  How would it know
which one is the original commit?), it is fine.

If not, a script that does not want the exported environment
variable can easily ignore it (just "unset" it) but to a script that
wanted to learn the information that used to be in the environment
variable, it's not "stop polluting" but "lose information", and that
is where my earlier "I wonder" comes from.





[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