author | Felipe Contreras <felipe.contreras@gmail.com> | |
Thu, 2 Feb 2012 09:05:29 +0000 (03:05 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 6 Feb 2012 23:53:31 +0000 (15:53 -0800) | ||
commit | d79f81adfe02a3f0eaf8deba5fb81dd220b72aae | |
tree | c4b3d397b35cd3ce635f8c2df6d103183491edd0 | tree | snapshot |
parent | cf0ff02a38b5b97091301224475d81923f3c298f | commit | diff |
completion: use ls -1 instead of rolling a loop to do that ourselves
This simplifies the code a great deal. In particular, it allows us to
get rid of __git_shopt, which is used only in this fuction to enable
'nullglob' in zsh.
[jn: squashed with a patch that actually gets rid of __git_shopt]
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This simplifies the code a great deal. In particular, it allows us to
get rid of __git_shopt, which is used only in this fuction to enable
'nullglob' in zsh.
[jn: squashed with a patch that actually gets rid of __git_shopt]
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | diff | blob | history |