Re: [PATCH 2/9] completion: optimize refs completion
- From
SZEDER Gábor <szeder@ira.uka.de>
- Date
- Oct 14, 2011, 12:16 UTC
- Message-ID
- <20111014121609.GB2208@goldbirke>
- In-Reply-To
- <1318085683-29830-3-git-send-email-szeder@ira.uka.de>
On Sat, Oct 08, 2011 at 04:54:36PM +0200, SZEDER Gábor wrote:
> So, add a specialized variant of __gitcomp() that only deals with > possible completion words separated by a newline
Show 9 quoted lines
> @@ -2635,7 +2659,7 @@ _git () > " > ;; > *) __git_compute_porcelain_commands > - __gitcomp "$__git_porcelain_commands $(__git_aliases)" ;; > + __gitcomp_nl "$__git_porcelain_commands $(__git_aliases)" ;; > esac > return > fi
Oops, this last hunk is wrong.
I made the thinko that $__git_porcelain_commands is NL-separated and the output of __git_aliases() is NL-separated, so we can pass the two together to the new __gitcomp_nl() function. But of course not, because the SP between the two joins the last command and the first alias.
I will resend in the evening with this hunk removed and the commit message updated.
Gábor