From: Junio C Hamano <gitster@pobox.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [RFC] Per-branch receive.* settings
Date: Tue, 18 Jan 2011 16:12:27 -0800 [thread overview]
Message-ID: <7vbp3dkaz8.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <AANLkTimt8BPKsiyVEO+7i+so8337LaUu4A4jpywvJ-Ar@mail.gmail.com> ("Ævar Arnfjörð Bjarmason"'s message of "Wed\, 19 Jan 2011 00\:07\:37 +0100")
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> Currently you can do in your server's git config:
>
> [receive]
> denyDeletes = true
> denyNonFastForwards = true
>
> But for most servers that's not what you want, you actually want to
> deny those things to the master branch, but allow people to have their
> private topic branches that they can reset. So how about allowing:
>
> [receive]
> denyDeletes = false
> denyNonFastForwards = false
>
> [branch "master"]
> denyDeletes = true
> denyNonFastForwards = true
While this would not be better than having no such feature, if you are
talking about allow(ing) "people", I doubt this would scale very well.
I wonder some globbing with site-specific naming convention would be more
scalable:
[receive]
denyDeletes = refs/heads/* && !refs/heads/*/*
denyNonFastForwards = refs/heads/* && !refs/heads/*/*
And in the meantime, of course you can use your update hook, mimicking
various examples, ranging from contrib/hooks/update-paranoid,
Documentation/howto/update-hook-example.txt, and hooks/update.sample.
prev parent reply other threads:[~2011-01-19 0:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 23:07 [RFC] Per-branch receive.* settings Ævar Arnfjörð Bjarmason
2011-01-19 0:12 ` Junio C Hamano [this message]
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=7vbp3dkaz8.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
/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