Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 3/3] _git: add receive.denyCurrentBranch option
- X-seq: zsh-workers 27858
- From: Hannu Koivisto <azure@xxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 3/3] _git: add receive.denyCurrentBranch option
- Date: Mon, 05 Apr 2010 20:44:28 +0300
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-copies-to: nobody
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
Completion/Unix/Command/_git | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index f2022c7..d5431d0 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -3307,6 +3307,7 @@ __git_config_name () {
'whatchanged.difftree:default git-diff-tree arguments for git-whatchanged'
'receive.unpackLimit:maximum number of objects to unpack when pushing'
'receive.denyNonFastforwards:whether git-receive-pack denies ref updates which are not fast-forwards'
+ 'receive.denyCurrentBranch:whether receive-pack will deny a ref update to the currently checked out branch'
'transfer.unpackLimit:default value for fetch.unpackLimit and receive.unpackLimit'
'imap.Folder:IMAP folder to use with git-imap-send'
'imap.Tunnel:tunneling command to use for git-imap-send'
@@ -3873,6 +3874,16 @@ __git_config_values () {
_describe -t booleans 'boolean' booleans
;;
+ ((#i)receive.denyCurrentBranch)
+ declare -a values
+
+ values=(
+ {true,refuse}':ref updates to the currently checked out branch are denied'
+ {false,ignore}':ref updates to the currently checked out branch are allowed'
+ 'warn:print a warning, but allow ref updates to the currently checked out branch')
+
+ _describe -t values 'value' values
+ ;;
((#i)imap.folder)
_mailboxes
;;
--
1.6.6.GIT
Messages sorted by:
Reverse Date,
Date,
Thread,
Author