Plumbing to rename a ref?

2014-05-23 Thread Sergei Organov
Hello, After convertion of a project from CVS to git, I'd like to rename some references in the created git repository (before it's published, so no problems here). Is there a plumbing that would do: git rename-ref old_name new_name for me? For reference, the (ugly) solution I currrently use

Re: Plumbing to rename a ref?

2014-05-23 Thread John Keeping
On Fri, May 23, 2014 at 02:11:55PM +0400, Sergei Organov wrote: Hello, After convertion of a project from CVS to git, I'd like to rename some references in the created git repository (before it's published, so no problems here). Is there a plumbing that would do: git rename-ref old_name

Re: Plumbing to rename a ref?

2014-05-23 Thread Sergei Organov
John Keeping j...@keeping.me.uk writes: On Fri, May 23, 2014 at 02:11:55PM +0400, Sergei Organov wrote: Hello, After convertion of a project from CVS to git, I'd like to rename some references in the created git repository (before it's published, so no problems here). Is there a plumbing

Re: Plumbing to rename a ref?

2014-05-23 Thread Jeff King
On Fri, May 23, 2014 at 03:35:54PM +0400, Sergei Organov wrote: John Keeping j...@keeping.me.uk writes: On Fri, May 23, 2014 at 02:11:55PM +0400, Sergei Organov wrote: Hello, After convertion of a project from CVS to git, I'd like to rename some references in the created git

Re: Plumbing to rename a ref?

2014-05-23 Thread Junio C Hamano
John Keeping j...@keeping.me.uk writes: On Fri, May 23, 2014 at 02:11:55PM +0400, Sergei Organov wrote: Hello, After convertion of a project from CVS to git, I'd like to rename some references in the created git repository (before it's published, so no problems here). Is there a plumbing

Re: Plumbing to rename a ref?

2014-05-23 Thread Junio C Hamano
Jeff King p...@peff.net writes: One thing that this misses (as does your original script) is the reflogs. Doing branch -m to rename a branch will actually move the reflogs, too, but there is otherwise no way to access that functionality. It does not seem unreasonable to teach git update-ref

Re: Plumbing to rename a ref?

2014-05-23 Thread John Keeping
On Fri, May 23, 2014 at 10:10:05AM -0700, Junio C Hamano wrote: John Keeping j...@keeping.me.uk writes: On Fri, May 23, 2014 at 02:11:55PM +0400, Sergei Organov wrote: Hello, After convertion of a project from CVS to git, I'd like to rename some references in the created git

Re: Plumbing to rename a ref?

2014-05-23 Thread Jeff King
On Fri, May 23, 2014 at 10:11:03AM -0700, Junio C Hamano wrote: Jeff King p...@peff.net writes: One thing that this misses (as does your original script) is the reflogs. Doing branch -m to rename a branch will actually move the reflogs, too, but there is otherwise no way to access that