From: Jonathan Nieder Date: Tue, 31 Jan 2012 00:25:26 GMT Subject: Re: [PATCH v2 3/4] completion: cleanup __gitcomp* Message-ID: <20120131002526.GB2678@burratino> In-Reply-To: <20120131001535.GB2632@goldbirke> SZEDER Gábor wrote: > On Mon, Jan 30, 2012 at 11:50:04AM -0600, Jonathan Nieder wrote: >> I imagine it would have been enough to say something along the lines of >> "The __gitcomp and __gitcomp_nl functions are unnecessarily verbose. >> __gitcomp_nl sets IFS to " \t\n" unnecessarily > > Yeah, that's unnecessary. I'm not sure why I did that, perhaps just > blindly followed suit of gitcomp_1(), without realizing that I don't > do any word-splitting in __gitcomp_nl() except when invoking compgen. > >> before setting it to "\n" >> by mistake. > > But that is deliberate, that's why it's called __gitcomp_nl(), see > a31e6262 (completion: optimize refs completion, 2011-10-15), third > paragraph. Yep, sorry for the ambiguity. I meant that setting IFS to " \t\n" (before setting it to "\n") was not done for any serious reason. The explanation is definitely clearer with "by mistake" dropped. Thanks, Jonathan