emacs-devel
[Top][All Lists]
Advanced

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

Re: Reformat all of src/


From: Phillip Lord
Subject: Re: Reformat all of src/
Date: Fri, 30 Dec 2016 10:30:23 -0000
User-agent: SquirrelMail/1.5.2 [SVN]

On Thu, December 29, 2016 4:17 pm, Eli Zaretskii wrote:
>> Date: Thu, 29 Dec 2016 13:18:59 -0000
>> From: "Phillip Lord" <address@hidden>
>> Cc: Phillip Lord <address@hidden>, address@hidden,
>> Dmitry Gutov <address@hidden>
>>
>>
>> I just checked and I think that comparing git diff --numstat output
>> with and without -b should identify when whitespace-only changes have
>> happened; this could be caught in the commit hook.
>
> Every mandatory check in the commit hook is a potential annoyance
> (think of someone, such as myself, who needs to push changes for
> others), so I'd prefer not to add any, unless we really must

When you say "push" changes, I guess you mean commit patches? AFAICT,
commit hooks do not run on pushes, so there should be no problem. But,
yes, for patches, then indeed if it is you applying them, then you will be
affected by the commit hook.

On the other hand, if the person who creates the patch uses git to do so,
the commit hook should affect their local commit when creating the patch.
Likewise with pull requests.

But, I agree, it is a small additional hassle.

Phil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]