zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH 3/3] _git: add receive.denyCurrentBranch option
@ 2010-04-05 17:44 Hannu Koivisto
  0 siblings, 0 replies; only message in thread
From: Hannu Koivisto @ 2010-04-05 17:44 UTC (permalink / raw)
  To: zsh-workers

---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-06 21:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-05 17:44 [PATCH 3/3] _git: add receive.denyCurrentBranch option Hannu Koivisto

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).