threads / discuss / 29272

1.7.7.3 wishlist: add --verbose option to git-tag

Subject: 1.7.7.3 wishlist: add --verbose option to git-tag

## tl;dr

4 messages between Dec 30, 2011 and Jan 3, 2012.

replies: 3people: 3as markdown or json

Jari Aalto· Dec 30, 2011, 23:32 UTC · lore
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
Jeff King· Jan 3, 2012, 19:39 UTC · re: Jari Aalto · lore

Re: 1.7.7.3 wishlist: add --verbose option to git-tag

On Sat, Dec 31, 2011 at 01:32:19AM +0200, Jari Aalto wrote:
Show 7 quoted lines
> 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?
Show 8 quoted lines
> 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
Junio C Hamano· Jan 3, 2012, 20:02 UTC · re: Jari Aalto · lore

Re: 1.7.7.3 wishlist: add --verbose option to git-tag

Jari Aalto <jari.aalto@cante.net> writes:
Show 7 quoted lines
> 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?

jaalto· Jan 3, 2012, 20:28 UTC · re: Junio C Hamano · lore

Re: 1.7.7.3 wishlist: add --verbose option to git-tag

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

← back to recent threads