tag: --force does not have to warn when creating tags
commit3ae851e6fbb4e99fa7281d18a5c6f95a3fb6d998
authorPhil Hord <hordp@cisco.com>
Tue, 12 Mar 2013 23:13:41 +0000 (12 19:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Mar 2013 17:35:15 +0000 (13 10:35 -0700)
tree8d9a4a19d6916b1b6c9f9e5484f1d7851ecc8c7f
parent03a0fb0ccf48c831060c2243f830b6a12cd8fdf3
tag: --force does not have to warn when creating tags

"git tag --force" mentions what old tag object is being replaced
when it is used to update an existing tag, but it shows the same
message when creating a new one.  Stop doing that, as it does not
add any information.

Add a test for this and also to ensure --force can replace tags at
all.

Signed-off-by: Phil Hord <hordp@cisco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/tag.c
t/t7004-tag.sh