git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] tag deletions not rejected with receive.denyDeletes= true

From
JVJerome DE VIVIE <j.devivie@prometil.com>
Date
Dec 12, 2011, 14:06 UTC
Message-ID
<12967682.2821323698766430.JavaMail.root@promailix.prometil.com>
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: Junio C Hamano
Message 1 of 2 in “Re: [PATCH] tag deletions not rejected with receive.denyDeletes= true”
  1. Jerome DE VIVIEDec 12, 2011
  2. Junio C HamanoDec 12, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.