From: Johannes Schindelin Date: Wed, 23 Dec 2009 13:28:14 GMT Subject: Re: [PATCH RFC 4/4] rebase -i: add --refs option to rewrite heads within branch Message-ID: In-Reply-To: <1ac2d430912222303k6180baa6j291bb4d18c7a4968@mail.gmail.com> Hi, On Wed, 23 Dec 2009, Greg Price wrote: > On Tue, Dec 22, 2009 at 6:37 PM, Junio C Hamano 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