Commit 805e6320 authored by Michael Prokop's avatar Michael Prokop

Provide patch for --patch option in git-commit completion

parent f629d4ee
From 3dc7613ff851f7b0570b1179eae843e9f1946c9e Mon Sep 17 00:00:00 2001
From: Michael Prokop <>
Date: Fri, 27 Jul 2012 17:13:09 +0200
Subject: [PATCH] Add -p/--patch option to completion for git commit
Completion/Unix/Command/_git | 1 +
1 file changed, 1 insertion(+)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 88c765f..42f87c1 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -606,6 +606,7 @@ _git-commit () {
strip\:"remove both whitespace and commentary lines"
default\:"act as '\''strip'\'' if the message is to be edited and as '\''whitespace'\'' otherwise"))' \
'(-e --edit)'{-e,--edit}'[edit the commit message before committing]' \
+ '(-p --patch)'{-p,--patch}'[use the interactive patch selection interface to chose which changes to commit]' \
'(-a --all --interactive -o --only -i --include)'{-i,--include}'[update the given files and commit the whole index]' \
'(-a --all --interactive -o --only -i --include)'{-o,--only}'[commit only the given files]' \
'(-u --untracked-files)'{-u-,--untracked-files=}'[show files in untracked directories]::mode:((no\:"show no untracked files"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment