Re: [PATCH] Implement git remote rename

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Friday, October 24, 2008 - 4:33 pm

Miklos Vajna <vmiklos@frugalware.org> writes:


Hmm, remote_get() can read from all three supported places that you can
define remotes.  Could you explain what happens if the old remote is read
from say $GIT_DIR/remotes/origin and you are renaming it to "upstream"
with "git remote rename origin upstream"?

I suspect that if you record where you read the configuration from in
"struct remote" and add necessary code to remove the original when
rename.old is *not* coming from in-config definition, you would make it
possible for repositories initialized with older git that has either
$GIT_DIR/branches/origin or $GIT_DIR/remotes/origin to be migrated to the
in-config format using "git remote rename origin origin".
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Implement git remote mv, Miklos Vajna, (Tue Oct 21, 5:23 pm)
Re: [PATCH] Implement git remote mv, Brandon Casey, (Wed Oct 22, 9:52 am)
[PATCH] Implement git remote mv, Miklos Vajna, (Wed Oct 22, 6:18 pm)
Re: [PATCH] Implement git remote mv, Jeff King, (Wed Oct 22, 8:52 pm)
[PATCH] Implement git remote rename, Miklos Vajna, (Thu Oct 23, 5:56 am)
Re: [PATCH] Implement git remote rename, Junio C Hamano, (Fri Oct 24, 4:33 pm)
[PATCH 1/2] Fix git branch -m for symrefs., Miklos Vajna, (Sat Oct 25, 5:58 am)
[PATCH 2/2] Fix git update-ref --no-deref -d., Miklos Vajna, (Sat Oct 25, 5:58 am)
Re: [PATCH 1/2] Fix git branch -m for symrefs., Junio C Hamano, (Sat Oct 25, 11:31 am)
[PATCH 0/3] symref rename/delete fixes, Miklos Vajna, (Sat Oct 25, 7:33 pm)
[PATCH 1/3] Fix git branch -m for symrefs., Miklos Vajna, (Sat Oct 25, 7:33 pm)
[PATCH 3/3] Fix git update-ref --no-deref -d., Miklos Vajna, (Sat Oct 25, 7:33 pm)
[PATCH] Implement git remote rename, Miklos Vajna, (Mon Nov 3, 11:26 am)
Re: [PATCH] Implement git remote rename, Miklos Vajna, (Mon Nov 10, 1:42 pm)