Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: renaming remote branches

From: Dmitry Potapov <hidden>
Date: 2016-06-15 22:46:37

On Thu, Apr 16, 2009 at 5:09 PM, Jay Soffian [off-list ref] wrote:
I wonder whether we should:

a) teach git remote a rename-branch sub-command
b) add support on the remote side for properly preserving the config and reflog

Thoughts?
Besides a race condition in creating new and deleting old branch, which
Jeff already mentioned, it could be some other problems. For instance,
how this new feature is going to interact with the update hook that many
users already have? It seems to me there is no way to make it backward
compatible with existing update hooks, so it will require to add a new
hook, and by default (unless this rename hook is explicitly allowed),
renaming should not be allowed, otherwise it can be used to circumvent
restrictions built inside 'update' hook.

Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help