git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Annotated tags by default?
@ 2014-06-17 20:04 Robert Dailey
  2014-06-17 21:02 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Dailey @ 2014-06-17 20:04 UTC (permalink / raw)
  To: Git

Is there a config option or some way for `git tag -a` to be the
default? I could create an alias but would make more sense to have a
config:

git config --global tag.alwaysannotate true

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Annotated tags by default?
  2014-06-17 20:04 Annotated tags by default? Robert Dailey
@ 2014-06-17 21:02 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2014-06-17 21:02 UTC (permalink / raw)
  To: Robert Dailey; +Cc: Git

Robert Dailey <rcdailey.lists@gmail.com> writes:

> Is there a config option or some way for `git tag -a` to be the
> default? I could create an alias but would make more sense to have a
> config:
>
> git config --global tag.alwaysannotate true

If you really wanted to, you could do the following (and you must to
do all of the following):

 * Introduce "git tag --no-annotate" option, that defeats the effect
   of such a configuration variable.

 * Devise some way to reliably catch scripts that use "git tag"
   without saying what kind of tag they want to create.  Add new
   code to issue a warning message saying that the script will be
   horribly broken when user starts using the configuration variable
   that will be introduced in the future.  This will force them to
   be updated to pass the "--no-annotate" option.

 * Wait for several releases to make sure that no script that want
   to use light-weight tags use "git tag" without "--no-annotate"
   option.

 * Introduce the configuration variable.

I personally do not think it is worth it, and also I do not know what
that "some way to reliably catch" would look like.

We gave short-and-sweet "-a" and "-s" options exactly because we
wanted to make it easy to type them.  Also, "tag -m msg" will DWIM
to "-a".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-17 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 20:04 Annotated tags by default? Robert Dailey
2014-06-17 21:02 ` Junio C Hamano

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).