Subject: Re: Suggestion: error "tag ... already exists" should distinguish between tagging different or same commit:

From: Andreas Schwab <[email-masked]>
Date: Mon, 09 Jun 2025 22:15:14 +0200

On Jun 09 2025, Hilco Wijbenga wrote:

> Does it really make sense for that first example to fail, though? "git
> tag hello v1.9.5" is an idempotent operation, isn't it? The second
> attempt is a no-op?

That's not true if an annotated tag is replaced by a lightweight tag.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."