threads / patch / 20473

patch, 9 partsadd missing long options to 'git difftool' completion

Subject: [PATCH 2/9] add missing long options to 'git difftool' completion

## tl;dr

One message between Aug 8, 2009 and Aug 8, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Emmanuel Trillaud· Aug 8, 2009, 08:55 UTC · lore

according to its man page, git-difftool has 3 long options : --tools=, --no-prompt and --prompt. The last 2 options are missing.

Signed-off-by: Emmanuel Trillaud <etrillaud@gmail.com>
---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to contrib/completion/git-completion.bash +1 −1
diff --git a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index bc5427f..9e86d28 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -960,7 +960,7 @@ _git_difftool ()
 		return
 		;;
 	--*)
-		__gitcomp "--tool="
+		__gitcomp "--tool= --no-prompt --prompt"
 		return
 		;;
 	esac
-- 
1.6.4

← back to recent threads