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>
Miklos Vajna committed
Jan 15, 2008 at 21:34 UTC
3e34526960d26ea9f3e2000d9e2400136d85086a
1 file changed
+2
-2
builtin-ls-remote.c
+2
-2
@@ -54,11 +54,11 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
54
uploadpack = arg + 7;
55
continue;
56
}
57
- if (!strcmp("--tags", arg)) {
57
+ if (!strcmp("--tags", arg) || !strcmp("-t", arg)) {
58
flags |= REF_TAGS;
59
continue;
60
}
61
- if (!strcmp("--heads", arg)) {
61
+ if (!strcmp("--heads", arg) || !strcmp("-h", arg)) {
62
flags |= REF_HEADS;
63
continue;
64
}