aboutsummaryrefslogtreecommitdiff
path: root/builtin-ls-remote.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-01-15 21:34:54 +0100
committerJunio C Hamano <gitster@pobox.com>2008-01-15 17:04:21 -0800
commit3e34526960d26ea9f3e2000d9e2400136d85086a (patch)
treeb4464f91309b5f77c978726f5abc0c63ba615d32 /builtin-ls-remote.c
parent4e6738778b30a5063579ad4b4ba34e12547f0e7c (diff)
downloadgit-3e34526960d26ea9f3e2000d9e2400136d85086a.tar.gz
git-3e34526960d26ea9f3e2000d9e2400136d85086a.tar.xz
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>
Diffstat (limited to 'builtin-ls-remote.c')
-rw-r--r--builtin-ls-remote.c4
1 files changed, 2 insertions, 2 deletions
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;
}