ls-remote.txt: delete unsupported option

-u <exec> has never been supported, but it was mentioned since 0a2bb55 (git ls-remote: make usage string match manpage - 2008-11-11). Nobody has complained about it for seven years, it's probably safe to say nobody cares. So let's remove "-u" in documents instead of adding code to support it. While at there, fix --upload-pack syntax too. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Sep 28, 2015 at 19:30 UTC 29bc480aa1a33ace2866743fed2bf8aba5de4d91
2 files changed +2 -3
Documentation/git-ls-remote.txt
+1 -2
@@ -9,7 +9,7 @@ git-ls-remote - List references in a remote repository
9 SYNOPSIS
10 --------
11 [verse]
12 -'git ls-remote' [--heads] [--tags] [-u <exec> | --upload-pack <exec>]
12 +'git ls-remote' [--heads] [--tags] [--upload-pack=<exec>]
13 [--exit-code] <repository> [<refs>...]
14
15 DESCRIPTION
@@ -29,7 +29,6 @@ OPTIONS
29 both, references stored in refs/heads and refs/tags are
30 displayed.
31
32 --u <exec>::
32 --upload-pack=<exec>::
33 Specify the full path of 'git-upload-pack' on the remote
34 host. This allows listing references from repositories accessed via
builtin/ls-remote.c
+1 -1
@@ -4,7 +4,7 @@
4 #include "remote.h"
5
6 static const char ls_remote_usage[] =
7 -"git ls-remote [--heads] [--tags] [-u <exec> | --upload-pack <exec>]\n"
7 +"git ls-remote [--heads] [--tags] [--upload-pack=<exec>]\n"
8 " [-q | --quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]";
9
10 /*