From: Junio C Hamano Date: Fri, 28 Feb 2014 20:02:04 GMT Subject: Re: [PATCH] OPTION_CMDMODE should be used when not accept an argument, and OPTION_NUMBER is of special type. So change the mode to OPTION_CMDMODE Message-ID: In-Reply-To: Duy Nguyen writes: > Way too long subject line. Keep it within 70-75 chars. The rest could > be put in the body. > > On Fri, Feb 28, 2014 at 9:32 PM, 孙赫 wrote: >> I am not sure if this is a bug. >> I need your help to find out it. > > Tip:git has a wonderful history (most of it anyway). Try "git log > --patch parse-options.[ch]" to understand parse-options evolution. Add > -SOPTION_NUMBER (or -SOPTION_CMDMODE) to limit to only commits whose > diff contains that keyword. Also, I do not think this should be done in a single patch. What if it turns out that explicitly making sure that CMDMODE does not take any argument is a good idea, but the other change is a bad one?