* fast-forwarding tags
@ 2013-09-25 11:36 Michael S. Tsirkin
2013-09-25 19:28 ` Jonathan Nieder
0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Tsirkin @ 2013-09-25 11:36 UTC (permalink / raw)
To: git
Hi!
Linus favors one-time use signed tags, e.g. for_linus.
Unfortunately if I push to such a tag without -f,
I get an error ("already exists").
Would it make sense for there to be an option that makes it behave like
a head, and allow fast-forward?
--
MST
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fast-forwarding tags
2013-09-25 11:36 fast-forwarding tags Michael S. Tsirkin
@ 2013-09-25 19:28 ` Jonathan Nieder
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Nieder @ 2013-09-25 19:28 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: git
Hi,
Michael S. Tsirkin wrote:
> Linus favors one-time use signed tags, e.g. for_linus.
> Unfortunately if I push to such a tag without -f,
> I get an error ("already exists").
> Would it make sense for there to be an option that makes it behave like
> a head, and allow fast-forward?
Nah, I think I prefer keeping the safety. :)
Are you pushing with "git push --tags", "git push --follow-tags", "git
push origin tag for-linus", or "git push origin for-linus"? It's
possible that the last two should *always* allow overwriting tags
(regardless of whether the change is a fast-forward update), though I
haven't thought it through carefully. In the former two cases, the
check for moving an existing tag seems useful and worth preserving.
In the meantime, a command like "git push origin +for-linus" seems
like a pleasant way to get the job done. That way, nothing bad
happens if you get distracted and forget to add the for-linus argument
(unlike "git push -f origin").
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-25 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25 11:36 fast-forwarding tags Michael S. Tsirkin
2013-09-25 19:28 ` Jonathan Nieder
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).