git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 23, 2009, 13:28 UTC
Message-ID
<alpine.DEB.1.00.0912231425440.4985@pacific.mpi-cbg.de>
In-Reply-To
<1ac2d430912222303k6180baa6j291bb4d18c7a4968@mail.gmail.com>
Hi,
On Wed, 23 Dec 2009, Greg Price wrote:
Show 10 quoted lines
> On Tue, Dec 22, 2009 at 6:37 PM, Junio C Hamano <gitster@pobox.com> 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

Previous: Junio C Hamano
Message 11 of 11 in “rebase -i: Add --refs option to rewrite heads within branch”
  1. 0/4 rebase -i: Add --refs option to rewrite heads within branchGreg Price, Dec 22, 2009
  2. 1/4 pretty: Add %D for script-friendly decorationGreg Price, Dec 22, 2009
  3. 2/4 log --decorate=full: drop the "tag: " prefixGreg Price, Dec 22, 2009
  4. 3/4 rebase -i: Add the "ref" commandGreg Price, Dec 22, 2009
  5. 4/4 rebase -i: add --refs option to rewrite heads within branchGreg Price, Dec 22, 2009
  6. Junio C HamanoDec 22, 2009
  7. Greg PriceDec 23, 2009
  8. Michael J GruberDec 23, 2009
  9. Greg PriceDec 23, 2009
  10. Junio C HamanoDec 23, 2009
  11. Johannes SchindelinDec 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.