completion: introduce __gitcomp_nl_append ()
authorRamkumar Ramachandra <artagnon@gmail.com>
Sun, 5 Jan 2014 10:18:03 +0000 (15:48 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jan 2014 17:14:48 +0000 (09:14 -0800)
There are situations where multiple classes of completions possible. For
example

branch.<TAB>

should try to complete

branch.master.
branch.autosetupmerge
branch.autosetuprebase

The first candidate has the suffix ".", and the second/ third candidates
have the suffix " ". To facilitate completions of this kind, create a
variation of __gitcomp_nl () that appends to the existing list of
completion candidates, COMPREPLY.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found