From: Junio C Hamano <gitster@pobox.com>
To: git@vger.kernel.org
Cc: jk@jk.gs, peff@peff.net
Subject: [PATCH 0/6] Deleting the "current" branch in a remote repository
Date: Mon, 9 Feb 2009 01:09:19 -0800 [thread overview]
Message-ID: <1234170565-6740-1-git-send-email-gitster@pobox.com> (raw)
In-Reply-To: <7v8wogzr3v.fsf@gitster.siamese.dyndns.org>
The first two are preparatory clean-up and bugfix patches.
The third one introduces receive.denyDeleteCurrent configuration that
defaults to "annoyingly loud warning", which we will flip to "refusal with
insn" at the end.
The fourth and fifth one are not about push and are more or less
independent. They deal with what happens when you ended up with a
dangling symbolic ref in a tracking hierarchy. I think a check
and warning similar to the fourth one may be needed in git-push (and
git-send-pack) when it pushes a void to remove a branch from a remote, and
in turn removes the corresponding tracking branch at the local end.
Then finally the last one flips the default for receive.denyDeleteCurrent
to refuse.
I think the first five ought to be in 1.6.2-rc1 but I lack the energy and
time to finish the testing, re-eyeballing and documentation tonight. It
would be very nice to see friends from other timezones to help me with
these tasks ;-)
Junio C Hamano (6):
builtin-receive-pack.c: do not initialize statics to 0
t5400: allow individual tests to fail
receive-pack: receive.denyDeleteCurrent
remote prune: warn dangling symrefs
Warn use of "origin" when remotes/origin/HEAD is dangling
receive-pack: default receive.denyDeleteCurrent to refuse
builtin-receive-pack.c | 70 ++++++++++++++++++++++++++++++++++++++--------
builtin-remote.c | 6 ++++
refs.c | 72 ++++++++++++++++++++++++++++++++++++------------
refs.h | 5 +++
sha1_name.c | 6 ++-
t/t5400-send-pack.sh | 44 ++++++++++++++++++++--------
6 files changed, 157 insertions(+), 46 deletions(-)
next prev parent reply other threads:[~2009-02-09 9:10 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-07 15:27 Deleting the "current" branch in remote bare repositories Jan Krüger
2009-02-07 22:05 ` Felipe Contreras
2009-02-08 0:18 ` Jan Krüger
2009-02-08 8:44 ` Jeff King
2009-02-08 9:42 ` Junio C Hamano
2009-02-08 11:18 ` Jeff King
2009-02-08 19:05 ` Junio C Hamano
2009-02-09 9:09 ` Junio C Hamano [this message]
2009-02-09 9:09 ` [PATCH 1/6] builtin-receive-pack.c: do not initialize statics to 0 Junio C Hamano
2009-02-09 9:09 ` [PATCH 2/6] t5400: allow individual tests to fail Junio C Hamano
2009-02-09 9:09 ` [PATCH 3/6] receive-pack: receive.denyDeleteCurrent Junio C Hamano
2009-02-09 9:09 ` [PATCH 4/6] remote prune: warn dangling symrefs Junio C Hamano
2009-02-09 9:09 ` [PATCH 5/6] Warn use of "origin" when remotes/origin/HEAD is dangling Junio C Hamano
2009-02-09 9:09 ` [PATCH 6/6] receive-pack: default receive.denyDeleteCurrent to refuse Junio C Hamano
2009-02-09 19:15 ` [PATCH 4/6] remote prune: warn dangling symrefs Jeff King
2009-02-11 17:30 ` Junio C Hamano
2009-02-11 18:35 ` Jeff King
2009-02-11 18:42 ` Jeff King
2009-02-09 18:53 ` [PATCH 3/6] receive-pack: receive.denyDeleteCurrent Jeff King
2009-02-09 19:22 ` Jeff King
2009-02-09 21:38 ` Junio C Hamano
2009-02-10 12:07 ` Jeff King
2009-02-10 15:15 ` Junio C Hamano
2009-02-09 18:46 ` [PATCH 2/6] t5400: allow individual tests to fail Jeff King
2009-02-09 19:08 ` Junio C Hamano
2009-02-09 21:39 ` Junio C Hamano
2009-02-10 12:01 ` Jeff King
2009-02-09 18:28 ` Deleting the "current" branch in remote bare repositories Jeff King
2009-02-09 18:36 ` Jeff King
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=1234170565-6740-1-git-send-email-gitster@pobox.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jk@jk.gs \
--cc=peff@peff.net \
/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).