# [PATCH] git ls-remote: make usage string match manpage

2 messages from 2008-11-11 to 2008-11-12. Participants: Stefan Naewe, Junio C Hamano.
Thread: https://gitlist.dev/t/16271

## Stefan Naewe, 2008-11-11 15:52

Subject: [PATCH] git ls-remote: make usage string match manpage
Message-ID: <1226418751-18747-1-git-send-email-stefan.naewe@atlas-elektronik.com>
URL: https://gitlist.dev/e/1226418751-18747-1-git-send-email-stefan.naewe%40atlas-elektronik.com

```
The usage string of 'git ls-remote' is pretty terse. The manpage
however gives the correct 'synopsis'.

Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com>
---
 builtin-ls-remote.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-ls-remote.c b/builtin-ls-remote.c
index c21b841..78a88f7 100644
--- a/builtin-ls-remote.c
+++ b/builtin-ls-remote.c
@@ -4,7 +4,7 @@
 #include "remote.h"
 
 static const char ls_remote_usage[] =
-"git ls-remote [--upload-pack=<git-upload-pack>] [<host>:]<directory>";
+"git ls-remote [--heads] [--tags]  [-u <exec> | --upload-pack <exec>] <repository> <refs>...";
 
 /*
  * Is there one among the list of patterns that match the tail part
-- 
1.5.6.5

```

## Junio C Hamano, 2008-11-12 00:50

Subject: Re: [PATCH] git ls-remote: make usage string match manpage
Message-ID: <7vtzadu5ql.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vtzadu5ql.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <1226418751-18747-1-git-send-email-stefan.naewe@atlas-elektronik.com>

```
Thanks, will apply.

```
