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 <mika@debian.org>
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"
--
1.7.10.4
deb_0000_at_configure.diff
deb_0001_at_config_h_in.diff
add_patch_option_to_completion_of_git_commit.diff
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