{"thread":{"id":"14845","subject":"[PATCH 8/8] bash completion: Add completion for 'git mv'","startedAt":"2008-08-05T19:08:30Z","lastAt":"2008-08-05T19:08:30Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":8},"messages":[{"id":"86287","messageId":"20080805190830.GD27207@spearce.org","threadId":"14845","inReplyTo":null,"subject":"[PATCH 8/8] bash completion: Add completion for 'git mv'","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-08-05T19:08:30Z","receivedAt":"2008-08-05T19:08:30Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"The missing patch 8.\n\n-- \nShawn.\n\n\nAdded completions for all long options specified in the docs\n        --dry-run\n\nSigned-off-by: Lee Marlow <lee.marlow@gmail.com>\n---\n contrib/completion/git-completion.bash |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 936cd35..57b8c0f 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -983,6 +983,18 @@ _git_merge_base ()\n \t__gitcomp \"$(__git_refs)\"\n }\n \n+_git_mv ()\n+{\n+\tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n+\tcase \"$cur\" in\n+\t--*)\n+\t\t__gitcomp \"--dry-run\"\n+\t\treturn\n+\t\t;;\n+\tesac\n+\tCOMPREPLY=()\n+}\n+\n _git_name_rev ()\n {\n \t__gitcomp \"--tags --all --stdin\"\n@@ -1615,6 +1627,7 @@ _git ()\n \tls-tree)     _git_ls_tree ;;\n \tmerge)       _git_merge;;\n \tmerge-base)  _git_merge_base ;;\n+\tmv)          _git_mv ;;\n \tname-rev)    _git_name_rev ;;\n \tpull)        _git_pull ;;\n \tpush)        _git_push ;;\n-- \n1.6.0.rc1.48.g2b6032\n\n"}]}