Skip to content

Commit

Permalink
completion: add space after completed filename
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed Apr 27, 2013
1 parent 3ffa4df commit fbe4511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit fbe4511

Please sign in to comment.