diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-27 15:10:06 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-27 14:32:29 -0700 |
commit | fbe451182ed1a6830b9c46b12899fd9f20381ad4 (patch) | |
tree | 64a2923fa2e2819de363e5a3c7ad19f5cbe5c287 /contrib/completion | |
parent | completion: add hack to enable file mode in bash < 4 (diff) | |
download | tgif-fbe451182ed1a6830b9c46b12899fd9f20381ad4.tar.xz |
completion: add space after completed filename
Just like before fea16b4 (git-completion.bash: add support for path
completion).
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index f9e8e7dae5..20c971875d 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -255,7 +255,7 @@ __gitcomp_file () __gitcompadd "$1" "${2-}" "${3-$cur}" "" # use a hack to enable file mode in bash < 4 - compopt -o filenames 2>/dev/null || + compopt -o filenames +o nospace 2>/dev/null || compgen -f /non-existing-dir/ > /dev/null } |