[Top][All Lists]

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

[Savannah-hackers-public] Re: prevent merge commits?

From: Jim Meyering
Subject: [Savannah-hackers-public] Re: prevent merge commits?
Date: Sun, 23 Aug 2009 08:36:02 +0200

Simon Josefsson wrote:
> Jim Meyering <address@hidden> writes:
>> FYI, it prohibits pushing trailing blanks as well, via this setting:
>>   # hooks.allowbadwhitespace
>>   #   This boolean sets whether you may push a commit that adds bad 
>> whitespace.
>>   #   By default, you may not.
>> Let me know if you'd prefer to toggle that for any of them.
> I ran into this check for an auto-generated file, which broke my release
> scripts...  For me it isn't worth preventing commits for whitespace
> reasons (I notice bad whitespace with 'make syntax-check' and fix when I
> have time), so please disable this check for all of my projects (gnutls,
> libtasn1, libidn, gsasl, shishi, gss, libntlm, autobuild, git2cl).

You can do it, yourself -- on a per-file basis.
Just add a line like this in .gitattributes:

generated.c -whitespace

If you prefer that I turn it off globally via the server config setting,
let me know.

> Btw, is there any way I can enable/disable the hook myself?  There are
> some cases where I _want_ to allow push of a merge commit (e.g., when I
> push a merge commit of someone else's git repository) and then it would
> be useful to temporarily disable the hook.

Is there a savanne (GUI) hook to change any other server-side
config setting, like receive.denyNonFastForwards ?
If so, it should be easy to let people change the setting that
controls this hooks.denymerge.BRANCH_NAME hook.

reply via email to

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