From: Jerome DE VIVIE <j.devivie@prometil.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] tag deletions not rejected with receive.denyDeletes= true
Date: Mon, 12 Dec 2011 15:06:06 +0100 (CET) [thread overview]
Message-ID: <12967682.2821323698766430.JavaMail.root@promailix.prometil.com> (raw)
In-Reply-To: <6271653.2751323698446271.JavaMail.root@promailix.prometil.com>
Junio C Hamano <gitster@pobox.com> writes :
> Our documentation can also use some updates, as it dates to the days back
> when we more liberally used "refs" and "branches" interchangeably.
Ok, I have turned the patch below for documentation.
For protecting tags, I can do it with triggers but its painful with lots of repositories. I propose to extend receive.denyDeletes with these values:
- "false"/"none" (existing behavior)
- "true"/"branches" (existing behavior)
- "tags": protect tags only
- "all": protect both tags and branches
Your opinion ?
BR
Jérôme
Signed-off-by: Jerome de Vivie <jedevivie-ext@airfrance.fr>
---
Documentation/config.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 5a841da..9c7c7fe 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1642,7 +1642,7 @@ receive.unpackLimit::
receive.denyDeletes::
If set to true, git-receive-pack will deny a ref update that deletes
- the ref. Use this to prevent such a ref deletion via a push.
+ a branch. Use this to prevent such a branch deletion via a push.
receive.denyDeleteCurrent::
If set to true, git-receive-pack will deny a ref update that
--
1.7.6.msysgit.0
next parent reply other threads:[~2011-12-12 14:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6271653.2751323698446271.JavaMail.root@promailix.prometil.com>
2011-12-12 14:06 ` Jerome DE VIVIE [this message]
2011-12-12 17:16 ` [PATCH] tag deletions not rejected with receive.denyDeletes= true Junio C Hamano
[not found] <18285669.571323420520289.JavaMail.root@promailix.prometil.com>
2011-12-09 8:51 ` Jerome DE VIVIE
2011-12-09 19:15 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12967682.2821323698766430.JavaMail.root@promailix.prometil.com \
--to=j.devivie@prometil.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).