From: Junio C Hamano Date: Fri, 11 Sep 2009 18:53:05 GMT Subject: Re: [PATCH v2] Re: add documentation for mailinfo.scissors and '--no-scissors' Message-ID: <7vws45wbxq.fsf@alter.siamese.dyndns.org> In-Reply-To: <20090911134112.GA18684@vidovic> Nicolas Sebrecht writes: > I don't understand your point here. This hunk doesn't allow > --no-no-scissors but add --no-scissors to usage of 'git am', no? > > Do I miss something around $OPTIONS_SPEC? You missed two thirds of the issue and I missed the other one third ;-) As scissors is not marked with ! (see PARSEOPT section in the rev-parse documentation), no-scissors is already available without that hunk, and that is why your patch is unnecessary. Your patch did not mark no-scissors with ! either, so it makes the call to rev-parse --parseopt to process your OPTIONS_SPEC pass --no-no-scissors. However, you did not add --no-no-scissors arm to the case statement that processes rev-parse --parseopt output, so the command as the whole still rejects --no-no-scissors as invalid (this is the last third I missed).