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

[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(-)
Next: Miklos Vajna
Message 1 of 6 in “symref rename/delete fixes”
  1. 0/3 symref rename/delete fixesMiklos Vajna, Oct 27, 2008
  2. 1/3 Disallow git branch -m for symrefs.Miklos Vajna, Oct 27, 2008
  3. 2/3 rename_ref(): handle the case when the reflog of a ref does not existMiklos Vajna, Oct 27, 2008
  4. 3/3 Fix git update-ref --no-deref -d.Miklos Vajna, Oct 27, 2008
  5. Miklos VajnaOct 28, 2008
  6. git branch -m: forbid renaming of a symrefMiklos Vajna, Oct 29, 2008

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.