Skip to content

Commit

Permalink
ls-remote: add -t and -h options.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Jan 16, 2008
1 parent 4e67387 commit 3e34526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin-ls-remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3e34526

Please sign in to comment.