{"thread":{"id":"25286","subject":"Rebase with tags","startedAt":"2010-09-29T08:45:43Z","lastAt":"2010-09-29T12:20:29Z","messageCount":3,"participants":["Leonid Podolny","Jon Seymour","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"152032","messageId":"AANLkTinQm8kVA_rCgX_SN=fX_2a0UU78aiOHr-YtO6zK@mail.gmail.com","threadId":"25286","inReplyTo":null,"subject":"Rebase with tags","fromName":"Leonid Podolny","fromEmail":"leonidp.lists@gmail.com","sentAt":"2010-09-29T08:45:43Z","receivedAt":"2010-09-29T08:45:43Z","isPatch":false,"sender":{"key":"leonidp.lists@gmail.com","avatar":null},"body":"Hi,\nI would expect this question to be asked dozens of times already, but\nsurprisingly I can't readily find an answer.\nIs it possible to transfer tags to a new branch during rebase? I mean,\nduring the rebase process, when git applies a tagged commit, I want it\nto transfer a tag to a new commit.\nIs it possible, at least, to receive a set of (old commit, new commit)\npairs, so that I will write a little script that will do that for me?\n"},{"id":"152044","messageId":"2892317C-ECA8-476C-9039-CA9FE3986CDF@gmail.com","threadId":"25286","inReplyTo":"AANLkTinQm8kVA_rCgX_SN=fX_2a0UU78aiOHr-YtO6zK@mail.gmail.com","subject":"Re: Rebase with tags","fromName":"Jon Seymour","fromEmail":"jon.seymour@gmail.com","sentAt":"2010-09-29T11:43:37Z","receivedAt":"2010-09-29T11:43:37Z","isPatch":false,"sender":{"key":"jon.seymour@gmail.com","avatar":"https://avatars.githubusercontent.com/u/207131?v=4"},"body":"\n\nSent from my iPhone\n\nOn 29/09/2010, at 18:45, Leonid Podolny <leonidp.lists@gmail.com> wrote:\n\n> Hi,\n> I would expect this question to be asked dozens of times already, but\n> surprisingly I can't readily find an answer.\n\nThe 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.\n\nTechnically 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.\n\nThat 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. \n\nPerhaps 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.\n\njon."},{"id":"152046","messageId":"201009291420.29871.trast@student.ethz.ch","threadId":"25286","inReplyTo":"AANLkTinQm8kVA_rCgX_SN=fX_2a0UU78aiOHr-YtO6zK@mail.gmail.com","subject":"Re: Rebase with tags","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2010-09-29T12:20:29Z","receivedAt":"2010-09-29T12:20:29Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Leonid Podolny wrote:\n> Is it possible, at least, to receive a set of (old commit, new commit)\n> pairs, so that I will write a little script that will do that for me?\n\nThe post-rewrite hook gets this list, so you can use that if you want\nto.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"}]}