git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rebase with tags
@ 2010-09-29  8:45 Leonid Podolny
  2010-09-29 11:43 ` Jon Seymour
  2010-09-29 12:20 ` Thomas Rast
  0 siblings, 2 replies; 3+ messages in thread
From: Leonid Podolny @ 2010-09-29  8:45 UTC (permalink / raw)
  To: git

Hi,
I would expect this question to be asked dozens of times already, but
surprisingly I can't readily find an answer.
Is it possible to transfer tags to a new branch during rebase? I mean,
during the rebase process, when git applies a tagged commit, I want it
to transfer a tag to a new commit.
Is it possible, at least, to receive a set of (old commit, new commit)
pairs, so that I will write a little script that will do that for me?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Rebase with tags
  2010-09-29  8:45 Rebase with tags Leonid Podolny
@ 2010-09-29 11:43 ` Jon Seymour
  2010-09-29 12:20 ` Thomas Rast
  1 sibling, 0 replies; 3+ messages in thread
From: Jon Seymour @ 2010-09-29 11:43 UTC (permalink / raw)
  To: Leonid Podolny; +Cc: git@vger.kernel.org



Sent from my iPhone

On 29/09/2010, at 18:45, Leonid Podolny <leonidp.lists@gmail.com> wrote:

> Hi,
> I would expect this question to be asked dozens of times already, but
> surprisingly I can't readily find an answer.

The reason this is not directly supported is that it encourages people to regard tags as mutable entities that can be changed at will. This goes against the general principle that a tag, once cut, never changes.

Technically you can change a tag, but this is meant to be a measure of last resort not something you do as a matter of course.

That said, I understand the requirement - if you are using tags as markers for different segments of a private history, I can see it would be useful to move the markers when you rebase. 

Perhaps there might be a case for a kind of marker reference that does move with a rebase, but it would be somewhat invasive to implement so you'd have to convince the list it was worthwhile.

jon.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Rebase with tags
  2010-09-29  8:45 Rebase with tags Leonid Podolny
  2010-09-29 11:43 ` Jon Seymour
@ 2010-09-29 12:20 ` Thomas Rast
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Rast @ 2010-09-29 12:20 UTC (permalink / raw)
  To: Leonid Podolny; +Cc: git

Leonid Podolny wrote:
> Is it possible, at least, to receive a set of (old commit, new commit)
> pairs, so that I will write a little script that will do that for me?

The post-rewrite hook gets this list, so you can use that if you want
to.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-29 12:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29  8:45 Rebase with tags Leonid Podolny
2010-09-29 11:43 ` Jon Seymour
2010-09-29 12:20 ` Thomas Rast

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).