From: Michael J Gruber <git@drmicha.warpmail.net>
To: Phil Hord <phil.hord@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, Phil Hord <hordp@cisco.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [PATCH] tag: --force is quiet about new tags
Date: Wed, 13 Mar 2013 10:16:52 +0100 [thread overview]
Message-ID: <51404404.4030005@drmicha.warpmail.net> (raw)
In-Reply-To: <CABURp0oT8ZN5fKtKh67Gm1P5rf_a3diqcYbw8mUga-gv5MPu6Q@mail.gmail.com>
Phil Hord venit, vidit, dixit 13.03.2013 05:21:
> On Tue, Mar 12, 2013 at 11:33 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Phil Hord <hordp@cisco.com> writes:
>>
>>> git tag --force is used to replace an existing tag with
>>> a new reference. Git helpfully tells the user the old
>>> ref when this happens. But if the tag name is new and does
>>> not exist, git tells the user the old ref anyway (000000).
>>>
>>> Teach git to ignore --force if the tag is new. Add a test
>>> for this and also to ensure --force can replace tags at all.
>>>
>>> Signed-off-by: Phil Hord <hordp@cisco.com>
>>> ---
>>
>> I think we would still want to allow the operation to go through,
>> even when the --force option is given, to create a new tag. I agree
>> that the message should not say "Updated". So teaching Git not to
>> issue the "Updated" message makes perfect sense. It is somewhat
>> misleading to say we are teaching Git to ignore the option, though.
>>
>> Thanks.
>
> My phrasing was too ambiguous. What you described is exactly what the
> patch does. --force is superfluous when the tag does not already
> exist. It is only checked in two places, and one of those is to
> decide whether to print the "Updated" message. How's this?
>
> Teach 'git tag --force' to suppress the update message if
> the tag is new. Add a test for this and also to ensure
> --force can replace tags at all.
>
> Phil
Looks good to me, both the patch and the (updated) commit message.
Michael
prev parent reply other threads:[~2013-03-13 9:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 23:13 [PATCH] tag: --force is quiet about new tags Phil Hord
2013-03-13 3:33 ` Junio C Hamano
2013-03-13 4:21 ` Phil Hord
2013-03-13 9:16 ` Michael J Gruber [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51404404.4030005@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hordp@cisco.com \
--cc=phil.hord@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).