From: Miklos Vajna Date: Tue, 15 Jan 2008 20:34:54 +0000 (+0100) Subject: ls-remote: add -t and -h options. X-Git-Tag: v1.5.4-rc4~35 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3e34526960d26ea9f3e2000d9e2400136d85086a;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-ls-remote.c b/builtin-ls-remote.c index c2caeeabe..6dd31d1dd 100644 --- a/builtin-ls-remote.c +++ b/builtin-ls-remote.c @@ -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; }