From: Shawn O. Pearce Date: Thu, 08 Oct 2009 04:32:42 GMT Subject: Re: [PATCH 3/3] completion: add dirstat and friends to diff options Message-ID: <20091008043242.GY9261@spearce.org> In-Reply-To: <7vmy42pzvc.fsf@alter.siamese.dyndns.org> Junio C Hamano wrote: > SZEDER G??bor writes: > > > On Wed, Oct 07, 2009 at 01:48:51AM -0700, Stephen Boyd wrote: > >> + --dirstat --dirstat= --dirstat-by-file > >> + --dirstat-by-file= --cumulative > > > > I'm a bit puzzled by having both --dirstat and --dirstat=, and > > --dirstat-by-file and --dirstat-by-file=. How do we complete similar > > long options, where an argument and hence the = char is optional? > > A similar example in "git init" completion (--shared vs --shared=) already > exists, no? I'm not sure why this is. It may just be historical accident, completing --shared vs. --shared= is ambiguous so you would need to type out the = anyway before trying to complete a value. IIRC --shared= came about after --shared and its possible we just added the new option and didn't notice the duplicate. -- Shawn.