mirror of
https://github.com/git/git
synced 2024-09-13 21:34:42 +00:00
Merge branch 'jc/ls-remote-short-help'
* jc/ls-remote-short-help: ls-remote: a lone "-h" is asking for help
This commit is contained in:
commit
f52237576a
|
@ -43,6 +43,9 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
|
||||||
struct transport *transport;
|
struct transport *transport;
|
||||||
const struct ref *ref;
|
const struct ref *ref;
|
||||||
|
|
||||||
|
if (argc == 2 && !strcmp("-h", argv[1]))
|
||||||
|
usage(ls_remote_usage);
|
||||||
|
|
||||||
for (i = 1; i < argc; i++) {
|
for (i = 1; i < argc; i++) {
|
||||||
const char *arg = argv[i];
|
const char *arg = argv[i];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue