* [PATCH] Fix bash completion in path with spaces
@ 2009-03-30 11:27 Daniel Cheng (aka SDiZ)
2009-03-30 14:39 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Cheng (aka SDiZ) @ 2009-03-30 11:27 UTC (permalink / raw)
To: gitster; +Cc: git, Daniel Cheng (aka SDiZ)
Signed-off-by: Daniel Cheng (aka SDiZ) <j16sdiz+freenet@gmail.com>
---
contrib/completion/git-completion.bash | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 1c6b0e2..e72ce24 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1103,7 +1103,7 @@ _git_log ()
local cur="${COMP_WORDS[COMP_CWORD]}"
local g="$(git rev-parse --git-dir 2>/dev/null)"
local merge=""
- if [ -f $g/MERGE_HEAD ]; then
+ if [ -f "$g/MERGE_HEAD" ]; then
merge="--merge"
fi
case "$cur" in
@@ -1943,7 +1943,7 @@ _gitk ()
local cur="${COMP_WORDS[COMP_CWORD]}"
local g="$(__gitdir)"
local merge=""
- if [ -f $g/MERGE_HEAD ]; then
+ if [ -f "$g/MERGE_HEAD" ]; then
merge="--merge"
fi
case "$cur" in
--
1.6.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix bash completion in path with spaces
2009-03-30 11:27 [PATCH] Fix bash completion in path with spaces Daniel Cheng (aka SDiZ)
@ 2009-03-30 14:39 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-03-30 14:39 UTC (permalink / raw)
To: Daniel Cheng (aka SDiZ); +Cc: gitster, git
"Daniel Cheng (aka SDiZ)" <j16sdiz+freenet@gmail.com> wrote:
>
> Signed-off-by: Daniel Cheng (aka SDiZ) <j16sdiz+freenet@gmail.com>
Trivially-acked-by: Shawn O. Pearce <spearce@spearce.org>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 1c6b0e2..e72ce24 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -1103,7 +1103,7 @@ _git_log ()
> local cur="${COMP_WORDS[COMP_CWORD]}"
> local g="$(git rev-parse --git-dir 2>/dev/null)"
> local merge=""
> - if [ -f $g/MERGE_HEAD ]; then
> + if [ -f "$g/MERGE_HEAD" ]; then
> merge="--merge"
> fi
> case "$cur" in
> @@ -1943,7 +1943,7 @@ _gitk ()
> local cur="${COMP_WORDS[COMP_CWORD]}"
> local g="$(__gitdir)"
> local merge=""
> - if [ -f $g/MERGE_HEAD ]; then
> + if [ -f "$g/MERGE_HEAD" ]; then
> merge="--merge"
> fi
> case "$cur" in
--
Shawn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-30 14:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-30 11:27 [PATCH] Fix bash completion in path with spaces Daniel Cheng (aka SDiZ)
2009-03-30 14:39 ` Shawn O. Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).