Add support for completing 'git blame'.  List only the common short
options.

Signed-off-by: Ramkumar Ramachandra <artag...@gmail.com>
---
 contrib/completion/git-completion.bash | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/contrib/completion/git-completion.bash 
b/contrib/completion/git-completion.bash
index 139f48e..a003b81 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1034,6 +1034,17 @@ _git_bisect ()
        esac
 }
 
+_git_blame ()
+{
+       __git_has_doubledash && return
+
+       case "$cur" in
+       -*)
+               __gitcomp "-M -C -L -s -w"
+       esac
+       __git_complete_revlist_file
+}
+
 _git_branch ()
 {
        local i c=1 only_local_ref="n" has_r="n"
-- 
1.8.3.457.g2410d5e

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to