Re: [PATCH RFC 4/4] rebase -i: add --refs option to rewrite heads within branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, 23 Dec 2009, Greg Price wrote:

> On Tue, Dec 22, 2009 at 6:37 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> 
> >  - This seems to rewrite only branch heads; don't you want to allow 
> > users  to rewrite lightweight tags and possibly annotated ones as 
> > well, by  perhaps giving "--rewrite-refs=refs/heads/" or 
> > "--rewrite-refs=refs/"  to limit what parts of the ref namespace to 
> > consider rewriting?
> 
> Sure.  I specifically left out tags because I generally think of a tag 
> as something immutable that it would not make sense to rewrite.

I do agree: if you plan to rewrite a ref, you _should_ make it a branch 
anyway.

A tag is not meant to be updated easily, in fact, we explicitely lack 
tools to do so (and it is quite hard to get updated tags from a repository 
where the tags changed anyway).  So rewriting tags is something that 
causes only trouble.

Why should rebase -i cause that trouble all of a sudden?

Ciao,
Dscho

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]