ls-remote: add -t and -h options.
These options are listed in the manpage (aliases for --tags/--heads) but they were not handled. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
4e6738778b
commit
3e34526960
@ -54,11 +54,11 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
|
||||
uploadpack = arg + 7;
|
||||
continue;
|
||||
}
|
||||
if (!strcmp("--tags", arg)) {
|
||||
if (!strcmp("--tags", arg) || !strcmp("-t", arg)) {
|
||||
flags |= REF_TAGS;
|
||||
continue;
|
||||
}
|
||||
if (!strcmp("--heads", arg)) {
|
||||
if (!strcmp("--heads", arg) || !strcmp("-h", arg)) {
|
||||
flags |= REF_HEADS;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user