git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
3ffa4df
)
completion: add space after completed filename
author
Felipe Contreras
<redacted>
Sat, 27 Apr 2013 20:10:06 +0000
(15:10 -0500)
committer
Junio C Hamano
<redacted>
Sat, 27 Apr 2013 21:32:29 +0000
(14:32 -0700)
Just like before
fea16b4
(git-completion.bash: add support for path
completion).
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index f9e8e7dae52068f82edeced360198279c09a86a6..20c971875da69039c1b7df848dafb2ad200194ea 100644
(file)
--- 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
}
git clone https://git.99rst.org/PROJECT