[PATCH 0/3] symref rename/delete fixes
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Oct 27, 2008, 19:50 UTC
- Message-ID
- <cover.1225136865.git.vmiklos@frugalware.org>
- In-Reply-To
- <20081027085055.GL2273@genesis.frugalware.org>
On Mon, Oct 27, 2008 at 09:50:55AM +0100, Miklos Vajna <vmiklos@frugalware.org> wrote:
> Ah, I missed that. You convienced me, I'll post updated patches later > today. :)
Here they are. The first is updated: the delete_ref() part is unchanged, but the rename_ref() part is dropped and it just bails out with an error if it detects a symref. The testcase is updated according to this as well.
The two others are just rebased on top of the new first one, no functional changes.
Miklos Vajna (3): Disallow git branch -m for symrefs. rename_ref(): handle the case when the reflog of a ref does not exist Fix git update-ref --no-deref -d.
builtin-branch.c | 2 +- builtin-receive-pack.c | 2 +- builtin-remote.c | 4 ++-- builtin-reset.c | 2 +- builtin-send-pack.c | 2 +- builtin-tag.c | 2 +- builtin-update-ref.c | 8 +++++--- cache.h | 2 +- refs.c | 35 ++++++++++++++++++++++++----------- t/t1400-update-ref.sh | 7 +++++++ t/t3200-branch.sh | 9 +++++++++ 11 files changed, 53 insertions(+), 22 deletions(-)