Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: Improving the git remote command

From: Philippe Vaucher <hidden>
Date: 2016-06-15 23:02:21

Perhaps "-v" should have been the default all along.  I do not use "git
remote" myself, so I don't know if "-v" is what most people use. But
changing the output of "git remote" now is probably a bad thing (I
expect some people may depend on parsing it to get the list of remotes;
they should probably use the git-config plumbing to do the same thing,
but it's actually rather tricky to do it that way).
Just to be clear, the proposal is not about changing the output of "git remote".

Anyway, it got me curious about other git commands reguarding "list",
and I was very surprised because I couldn't find another one. I mean
"git remote" actually behaves like "git branch" and "git tag". I have
no clue why I expect "list" to work with "git remote".

It's probably because "git branch" and "git tag" expect a name, and
there "list" can only be expressed by "no name" or with some flags. On
the other hand, "git remote" expects a subcommand (add, delete, etc)
and there what logically maps to "list" is the subcommand "list", "no
name" being more expected to produce a list of the subcommands.

Philippe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help