{"thread":{"id":"27707","subject":"[PATCH] completion: add support for 'git blame'","startedAt":"2011-06-27T08:45:24Z","lastAt":"2011-06-27T08:45:24Z","messageCount":1,"participants":["Namhyung Kim"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"170570","messageId":"1309164324-15146-1-git-send-email-namhyung@gmail.com","threadId":"27707","inReplyTo":null,"subject":"[PATCH] completion: add support for 'git blame'","fromName":"Namhyung Kim","fromEmail":"namhyung@gmail.com","sentAt":"2011-06-27T08:45:24Z","receivedAt":"2011-06-27T08:45:24Z","isPatch":true,"sender":{"key":"namhyung@gmail.com","avatar":"https://avatars.githubusercontent.com/u/48503?v=4"},"body":"Signed-off-by: Namhyung Kim <namhyung@gmail.com>\n---\n contrib/completion/git-completion.bash |   22 ++++++++++++++++++++++\n 1 files changed, 22 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 5a83090..bebadda 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1118,6 +1118,28 @@ _git_bisect ()\n \tesac\n }\n \n+_git_blame ()\n+{\n+\t__git_has_doubledash && return\n+\n+\tcase \"$cur\" in\n+\t--date=*)\n+\t\t__gitcomp \"$__git_log_date_formats\" \"\" \"${cur##--date=}\"\n+\t\t;;\n+\t--*)\n+\t\t__gitcomp \"\n+\t\t\t--incremental --root --show-stats --score-debug\n+\t\t\t--show-name --show-number --porcelain\n+\t\t\t--line-porcelain --show-email --contents\n+\t\t\t--abbrev= --date= --encoding --reverse\n+\t\t\t\"\n+\t\t;;\n+\t*)\n+\t\tCOMPREPLY=()\n+\t\t;;\n+\tesac\n+}\n+\n _git_branch ()\n {\n \tlocal i c=1 only_local_ref=\"n\" has_r=\"n\"\n-- \n1.7.6\n"}]}