diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2012-02-02 11:48:08 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-06 15:53:33 -0800 |
commit | 583e4d579d36894ccdc1f4fb4a6dd24c9274c5f8 (patch) | |
tree | 559617acca04f9659d8c9b63ba969d225c45d447 /contrib/continuous | |
parent | completion: use ls -1 instead of rolling a loop to do that ourselves (diff) | |
download | tgif-583e4d579d36894ccdc1f4fb4a6dd24c9274c5f8.tar.xz |
completion: simplify __gitcomp and __gitcomp_nl implementations
These shell functions are written in an unnecessarily verbose way;
simplify their "conditionally use $<number> after checking $# against
<number>" logic by using shell's built-in conditional substitution
facilities.
Also remove the first of the two assignments to IFS in __gitcomp_nl
that does not have any effect.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/continuous')
0 files changed, 0 insertions, 0 deletions