git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 1.7.7.3 wishlist: add --verbose option to git-tag
@ 2011-12-30 23:32 Jari Aalto
  2012-01-03 19:39 ` Jeff King
  2012-01-03 20:02 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Jari Aalto @ 2011-12-30 23:32 UTC (permalink / raw)
  To: git


In scripts it would be useful if "git tag" would provide option:

    --verbose

As in script:

    git tag --verbose -m "Initial import" upstream/1.0

It would also help if all commands would use similar interface. In "git
tag" case, this would meen relocating:

    -v      =>      -g, --verify-gpg

And reserve these:

    -v, --verbose

Jari

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

* Re: 1.7.7.3 wishlist: add --verbose option to git-tag
  2011-12-30 23:32 1.7.7.3 wishlist: add --verbose option to git-tag Jari Aalto
@ 2012-01-03 19:39 ` Jeff King
  2012-01-03 20:02 ` Junio C Hamano
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff King @ 2012-01-03 19:39 UTC (permalink / raw)
  To: Jari Aalto; +Cc: git

On Sat, Dec 31, 2011 at 01:32:19AM +0200, Jari Aalto wrote:

> In scripts it would be useful if "git tag" would provide option:
> 
>     --verbose
> 
> As in script:
> 
>     git tag --verbose -m "Initial import" upstream/1.0

What would the --verbose flag do?

> It would also help if all commands would use similar interface. In "git
> tag" case, this would meen relocating:
> 
>     -v      =>      -g, --verify-gpg
> 
> And reserve these:
> 
>     -v, --verbose

I agree it would be nicer. We would need to follow the usual deprecation
procedure of:

  1. introduce "-g", leave "-v" as a deprecated alias

  2. wait a long time

  3. drop "-v"

If you want to start a discussion, producing a patch for (1) is probably
the best way. If your plan is eventual consistency between options of
various commands, an even better start would be listing the existing
non-verbose uses of "-v" and making aliases for all of them.

-Peff

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

* Re: 1.7.7.3 wishlist: add --verbose option to git-tag
  2011-12-30 23:32 1.7.7.3 wishlist: add --verbose option to git-tag Jari Aalto
  2012-01-03 19:39 ` Jeff King
@ 2012-01-03 20:02 ` Junio C Hamano
  2012-01-03 20:28   ` jaalto
  1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2012-01-03 20:02 UTC (permalink / raw)
  To: Jari Aalto; +Cc: git

Jari Aalto <jari.aalto@cante.net> writes:

> In scripts it would be useful if "git tag" would provide option:
>
>     --verbose
>
> As in script:
>
>     git tag --verbose -m "Initial import" upstream/1.0

"In scripts", you are expected to be capable of doing anything fancy with
"git cat-file tag", but we add things that turn out to be commonly needed.

What does the proposed "--verbose" produce that makes scripts easier to
write (i.e. avoids repeated post-processing of "git cat-file tag" output),
and how commonly would what you propose apply to various people's needs
other than yours?

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

* Re: 1.7.7.3 wishlist: add --verbose option to git-tag
  2012-01-03 20:02 ` Junio C Hamano
@ 2012-01-03 20:28   ` jaalto
  0 siblings, 0 replies; 4+ messages in thread
From: jaalto @ 2012-01-03 20:28 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On 2012-01-03 12:02, Junio C Hamano wrote:
| Jari Aalto <jari.aalto@cante.net> writes:
| 
| > In scripts it would be useful if "git tag" would provide option:
| >
| >     --verbose
| >
| > As in script:
| >
| >     git tag --verbose -m "Initial import" upstream/1.0
| 
| What does the proposed "--verbose" produce that makes scripts easier to
| write

Not "easier write", but to display progress to user; show what is
hapening. Similarly to other --verbose options. Messgae could be:

	  "tagged: upstream/1.0 asd1234"

Jari

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

end of thread, other threads:[~2012-01-03 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-30 23:32 1.7.7.3 wishlist: add --verbose option to git-tag Jari Aalto
2012-01-03 19:39 ` Jeff King
2012-01-03 20:02 ` Junio C Hamano
2012-01-03 20:28   ` jaalto

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