Skip to content

Commit 29bc480

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 74b6763 commit 29bc480

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Documentation/git-ls-remote.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-ls-remote - List references in a remote repository
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git ls-remote' [--heads] [--tags] [-u <exec> | --upload-pack <exec>]
12+
'git ls-remote' [--heads] [--tags] [--upload-pack=<exec>]
1313
[--exit-code] <repository> [<refs>...]
1414

1515
DESCRIPTION
@@ -29,7 +29,6 @@ OPTIONS
2929
both, references stored in refs/heads and refs/tags are
3030
displayed.
3131

32-
-u <exec>::
3332
--upload-pack=<exec>::
3433
Specify the full path of 'git-upload-pack' on the remote
3534
host. This allows listing references from repositories accessed via

builtin/ls-remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "remote.h"
55

66
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"
88
" [-q | --quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]";
99

1010
/*

0 commit comments

Comments
 (0)