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:
Miklos Vajna 2008-01-15 21:34:54 +01:00 committed by Junio C Hamano
parent 4e6738778b
commit 3e34526960

View file

@ -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;
}