{"thread":{"id":"18640","subject":"[PATCH] Fix bash completion in path with spaces","startedAt":"2009-03-30T11:27:37Z","lastAt":"2009-03-30T14:39:52Z","messageCount":2,"participants":["Daniel Cheng (aka SDiZ)","Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"109886","messageId":"1238412457-29674-1-git-send-email-j16sdiz+freenet@gmail.com","threadId":"18640","inReplyTo":null,"subject":"[PATCH] Fix bash completion in path with spaces","fromName":"Daniel Cheng (aka SDiZ)","fromEmail":"j16sdiz+freenet@gmail.com","sentAt":"2009-03-30T11:27:37Z","receivedAt":"2009-03-30T11:27:37Z","isPatch":true,"sender":{"key":"j16sdiz+freenet@gmail.com","avatar":"https://gravatar.com/avatar/3e796e8a156ee86e305bfc1fbe01608302554ee3b5fa7eb8d1213b8877bfcabd?d=mp&s=160"},"body":"\nSigned-off-by: Daniel Cheng (aka SDiZ) <j16sdiz+freenet@gmail.com>\n---\n contrib/completion/git-completion.bash |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 1c6b0e2..e72ce24 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1103,7 +1103,7 @@ _git_log ()\n \tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n \tlocal g=\"$(git rev-parse --git-dir 2>/dev/null)\"\n \tlocal merge=\"\"\n-\tif [ -f $g/MERGE_HEAD ]; then\n+\tif [ -f \"$g/MERGE_HEAD\" ]; then\n \t\tmerge=\"--merge\"\n \tfi\n \tcase \"$cur\" in\n@@ -1943,7 +1943,7 @@ _gitk ()\n \tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n \tlocal g=\"$(__gitdir)\"\n \tlocal merge=\"\"\n-\tif [ -f $g/MERGE_HEAD ]; then\n+\tif [ -f \"$g/MERGE_HEAD\" ]; then\n \t\tmerge=\"--merge\"\n \tfi\n \tcase \"$cur\" in\n-- \n1.6.2\n"},{"id":"109909","messageId":"20090330143952.GB23521@spearce.org","threadId":"18640","inReplyTo":"1238412457-29674-1-git-send-email-j16sdiz+freenet@gmail.com","subject":"Re: [PATCH] Fix bash completion in path with spaces","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-03-30T14:39:52Z","receivedAt":"2009-03-30T14:39:52Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"\"Daniel Cheng (aka SDiZ)\" <j16sdiz+freenet@gmail.com> wrote:\n> \n> Signed-off-by: Daniel Cheng (aka SDiZ) <j16sdiz+freenet@gmail.com>\n\nTrivially-acked-by: Shawn O. Pearce <spearce@spearce.org>\n\n> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\n> index 1c6b0e2..e72ce24 100755\n> --- a/contrib/completion/git-completion.bash\n> +++ b/contrib/completion/git-completion.bash\n> @@ -1103,7 +1103,7 @@ _git_log ()\n>  \tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n>  \tlocal g=\"$(git rev-parse --git-dir 2>/dev/null)\"\n>  \tlocal merge=\"\"\n> -\tif [ -f $g/MERGE_HEAD ]; then\n> +\tif [ -f \"$g/MERGE_HEAD\" ]; then\n>  \t\tmerge=\"--merge\"\n>  \tfi\n>  \tcase \"$cur\" in\n> @@ -1943,7 +1943,7 @@ _gitk ()\n>  \tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n>  \tlocal g=\"$(__gitdir)\"\n>  \tlocal merge=\"\"\n> -\tif [ -f $g/MERGE_HEAD ]; then\n> +\tif [ -f \"$g/MERGE_HEAD\" ]; then\n>  \t\tmerge=\"--merge\"\n>  \tfi\n>  \tcase \"$cur\" in\n\n-- \nShawn.\n"}]}