git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] completion: add support for 'git blame'

From
Namhyung Kim <namhyung@gmail.com>
Date
Jun 27, 2011, 08:45 UTC
Message-ID
<1309164324-15146-1-git-send-email-namhyung@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 contrib/completion/git-completion.bash |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 5a83090..bebadda 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1118,6 +1118,28 @@ _git_bisect ()
 	esac
 }
 
+_git_blame ()
+{
+	__git_has_doubledash && return
+
+	case "$cur" in
+	--date=*)
+		__gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
+		;;
+	--*)
+		__gitcomp "
+			--incremental --root --show-stats --score-debug
+			--show-name --show-number --porcelain
+			--line-porcelain --show-email --contents
+			--abbrev= --date= --encoding --reverse
+			"
+		;;
+	*)
+		COMPREPLY=()
+		;;
+	esac
+}
+
 _git_branch ()
 {
 	local i c=1 only_local_ref="n" has_r="n"
-- 
1.7.6
Message 1 of 1 in “completion: add support for 'git blame'”
  1. completion: add support for 'git blame'Namhyung Kim, Jun 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.