Re: renaming remote branches
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Apr 17, 2009, 16:20 UTC
- Message-ID
- <37fcd2780904170920m5a0c6c24se345275b0944e59d@mail.gmail.com>
- In-Reply-To
- <76718490904160609s1ef9c1e0m6f19ff169666fa3@mail.gmail.com>
On Thu, Apr 16, 2009 at 5:09 PM, Jay Soffian <jaysoffian@gmail.com> wrote:
Show 7 quoted lines
> > 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