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

[PATCH v2 0/4] git-remote rename: support branches->config migration

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Nov 12, 2008, 17:11 UTC
Message-ID
<cover.1226508805.git.vmiklos@frugalware.org>
In-Reply-To
<7viqqtshdd.fsf@gitster.siamese.dyndns.org>
On Tue, Nov 11, 2008 at 08:22:38PM -0800, Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
> The function migrate_file() introduced by [2/4] is called for any
> remote definition that did not come from config (by definition, it
> either came from remotes/foo or branches/foo).  The function adds the
> entries for the given remote definition to the config file, and then
> removes remotes/foo file if the remote definition came from it.  So it
> is a logically consistent change if you only called this function only
> for remote definitions that came from remotes/foo.
>
> But the function is called for a remote definition that originally
> came from branches/foo as well.  It happily adds the definition to the
> config, even though it *fails to remove* branches/foo file.
>
> Do you still think 2/4 is a logically contained good change?

OK, here is an updated series, which is supposed to fix this issue. 1/4 and 4/4 is unchanged.

Miklos Vajna (4):
  remote: add a new 'origin' variable to the struct
  git-remote rename: support remotes->config migration
  git-remote rename: support branches->config migration
  git-remote: document the migration feature of the rename subcommand
 Documentation/git-remote.txt |    4 ++++
 builtin-remote.c             |   37 +++++++++++++++++++++++++++++++++++++
 remote.c                     |    3 +++
 remote.h                     |    7 +++++++
 t/t5505-remote.sh            |   33 +++++++++++++++++++++++++++++++++
 5 files changed, 84 insertions(+), 0 deletions(-)
Next: Miklos Vajna
Message 1 of 5 in “git-remote rename: support branches->config migration”
  1. 0/4 git-remote rename: support branches->config migrationMiklos Vajna, Nov 12, 2008
  2. 1/4 remote: add a new 'origin' variable to the structMiklos Vajna, Nov 12, 2008
  3. 2/4 git-remote rename: support remotes->config migrationMiklos Vajna, Nov 12, 2008
  4. 3/4 git-remote rename: support branches->config migrationMiklos Vajna, Nov 12, 2008
  5. 4/4 git-remote: document the migration feature of the rename subcommandMiklos Vajna, Nov 12, 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.