Skip to contentSkip to conversation

remote: Remove -v/--verbose option from git remote show synopsis

PATCH In review Alexander Kuleshov 3 participants 6 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 remote: Remove -v/--verbose option from git remote show synopsis

git remote show doesn't use -v/--verbose option

---
 builtin/remote.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/remote.c +1 -1
index 46ecfd9..978c645 100644
@@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = {
 	N_("git remote rename <old> <new>"),
 	N_("git remote remove <name>"),
 	N_("git remote set-head <name> (-a | --auto | -d | --delete |<branch>)"),
-	N_("git remote [-v | --verbose] show [-n] <name>"),
+	N_("git remote show [-n] <name>"),
 	N_("git remote prune [-n | --dry-run] <name>"),
 	N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
 	N_("git remote set-branches [--add] <name> <branch>..."),
Signature · 1 line
2.2.1.364.g47473d1.dirty
#1 lore raw

Am 08.01.2015 um 18:57 schrieb Alexander Kuleshov:

Quoted 1 line

git remote show doesn't use -v/--verbose option

Hmm, but it does?

	$ git version
	git version 2.2.1
	$ git remote show
	origin
	$ git remote -v show
	origin  git://git.kernel.org/pub/scm/git/git.git (fetch)
	origin  git://git.kernel.org/pub/scm/git/git.git (push)

Perhaps you meant the following variant? The changed line documents the one above, though (-v before show).

	$ git remote show -v
	error: unknown switch `v'
	usage: git remote show [<options>] <name>

-n do not query remotes

Quoted 19 lines
---
  builtin/remote.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
builtin/remote.c +1 -1
index 46ecfd9..978c645 100644
@@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = {
  	N_("git remote rename <old> <new>"),
  	N_("git remote remove <name>"),
  	N_("git remote set-head <name> (-a | --auto | -d | --delete |<branch>)"),
-	N_("git remote [-v | --verbose] show [-n] <name>"),
+	N_("git remote show [-n] <name>"),
  	N_("git remote prune [-n | --dry-run] <name>"),
  	N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
  	N_("git remote set-branches [--add] <name> <branch>..."),
#2 lore raw

Ah, yes, right. Please dismiss 1,2 patches.

Sorry for noise

2015-01-09 1:17 GMT+06:00 René Scharfe <[email protected]>:

Quoted 47 lines

Am 08.01.2015 um 18:57 schrieb Alexander Kuleshov:

Quoted 2 lines

git remote show doesn't use -v/--verbose option

Hmm, but it does?

        $ git version
        git version 2.2.1
        $ git remote show
        origin
        $ git remote -v show
        origin  git://git.kernel.org/pub/scm/git/git.git (fetch)
        origin  git://git.kernel.org/pub/scm/git/git.git (push)

Perhaps you meant the following variant? The changed line documents the one above, though (-v before show).

        $ git remote show -v
        error: unknown switch `v'
        usage: git remote show [<options>] <name>

-n do not query remotes

Quoted 21 lines
---
  builtin/remote.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
builtin/remote.c +1 -1
index 46ecfd9..978c645 100644
@@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = {
        N_("git remote rename <old> <new>"),
        N_("git remote remove <name>"),
        N_("git remote set-head <name> (-a | --auto | -d | --delete
 |<branch>)"),
-       N_("git remote [-v | --verbose] show [-n] <name>"),
+       N_("git remote show [-n] <name>"),
        N_("git remote prune [-n | --dry-run] <name>"),
        N_("git remote [-v | --verbose] update [-p | --prune] [(<group> |

<remote>)...]"),

        N_("git remote set-branches [--add] <name> <branch>..."),
Signature · 2 lines
_________________________
0xAX
#3 lore raw
In reply to René Scharfe
Quoted 13 lines · René Scharfe

Am 08.01.2015 um 18:57 schrieb Alexander Kuleshov:

Quoted 1 line

git remote show doesn't use -v/--verbose option

Hmm, but it does?

	$ git version
	git version 2.2.1
	$ git remote show
	origin
	$ git remote -v show
	origin  git://git.kernel.org/pub/scm/git/git.git (fetch)
	origin  git://git.kernel.org/pub/scm/git/git.git (push)
Quoted 8 lines

Perhaps you meant the following variant? The changed line documents the one above, though (-v before show).

	$ git remote show -v
	error: unknown switch `v'
	usage: git remote show [<options>] <name>

-n do not query remotes

Ahh, I misread the patch. Thanks.

Quoted 6 lines
Quoted 6 lines
builtin/remote.c +0 -0
index 46ecfd9..978c645 100644
@@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = {
  	N_("git remote rename <old> <new>"),
Quoted 8 lines

builtin/remote.c static const char * const builtin_remote_usage[] = { · line 20

Quoted 8 lines
builtin/remote.c +1 -1
  	N_("git remote remove <name>"),
  	N_("git remote set-head <name> (-a | --auto | -d | --delete |<branch>)"),
-	N_("git remote [-v | --verbose] show [-n] <name>"),
+	N_("git remote show [-n] <name>"),
  	N_("git remote prune [-n | --dry-run] <name>"),
  	N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
  	N_("git remote set-branches [--add] <name> <branch>..."),

I however have a bit larger question. Does it make sense to have [-v/--verbose] in front of some but not all of the subcommands?

For example, the above snippet gives me an impression that

    $ git remote -v prune -n origin

should not work, but that does not seem to be the case.

#4 lore raw

What if move -v/--verbose after commands? Like:

git remote show [-v | --verbose] [-n] <name>

and etc...?

2015-01-09 2:14 GMT+06:00 Junio C Hamano <[email protected]>:

Quoted 49 lines
Quoted 13 lines · René Scharfe

Am 08.01.2015 um 18:57 schrieb Alexander Kuleshov:

Quoted 1 line

git remote show doesn't use -v/--verbose option

Hmm, but it does?

      $ git version
      git version 2.2.1
      $ git remote show
      origin
      $ git remote -v show
      origin  git://git.kernel.org/pub/scm/git/git.git (fetch)
      origin  git://git.kernel.org/pub/scm/git/git.git (push)
Quoted 8 lines

Perhaps you meant the following variant? The changed line documents the one above, though (-v before show).

      $ git remote show -v
      error: unknown switch `v'
      usage: git remote show [<options>] <name>

-n do not query remotes

Ahh, I misread the patch. Thanks.

Quoted 6 lines
Quoted 6 lines
builtin/remote.c +0 -0
index 46ecfd9..978c645 100644
@@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = {
     N_("git remote rename <old> <new>"),
Quoted 8 lines

builtin/remote.c static const char * const builtin_remote_usage[] = { · line 20

Quoted 8 lines
builtin/remote.c +1 -1
     N_("git remote remove <name>"),
     N_("git remote set-head <name> (-a | --auto | -d | --delete |<branch>)"),
-    N_("git remote [-v | --verbose] show [-n] <name>"),
+    N_("git remote show [-n] <name>"),
     N_("git remote prune [-n | --dry-run] <name>"),
     N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
     N_("git remote set-branches [--add] <name> <branch>..."),

I however have a bit larger question. Does it make sense to have [-v/--verbose] in front of some but not all of the subcommands?

For example, the above snippet gives me an impression that

    $ git remote -v prune -n origin

should not work, but that does not seem to be the case.

Signature · 2 lines
_________________________
0xAX
#5 lore raw
In reply to Alexander Kuleshov
Quoted 3 lines · Alexander Kuleshov

git remote show doesn't use -v/--verbose option

Thanks.

I think these two patches should be squashed into one (which I can do locally without asking you to resend) but they are good changes. The subcommand does not just "not use", but it does not even support (i.e. it throws an error when the option is given).

Quoted 17 lines
---
 builtin/remote.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/remote.c +1 -1
index 46ecfd9..978c645 100644
@@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = {
 	N_("git remote rename <old> <new>"),
 	N_("git remote remove <name>"),
 	N_("git remote set-head <name> (-a | --auto | -d | --delete |<branch>)"),
-	N_("git remote [-v | --verbose] show [-n] <name>"),
+	N_("git remote show [-n] <name>"),
 	N_("git remote prune [-n | --dry-run] <name>"),
 	N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
 	N_("git remote set-branches [--add] <name> <branch>..."),