From: Jonathan Nieder <jrnieder@gmail.com>
To: Tim Henigan <tim.henigan@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: th/remote-usage
Date: Wed, 18 Nov 2009 05:48:08 -0600 [thread overview]
Message-ID: <20091118114808.GA13346@progeny.tock> (raw)
In-Reply-To: <7v7hto46ce.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> [New Topics]
>
> * th/remote-usage (2009-11-16) 1 commit.
> - git remote: Separate usage strings for subcommands
Glancing at pu^2, I had two small nitpicks: [<options>...] is five
characters longer than strictly necessary, and the argument to git
remote set-head is not actually optional.
In other words, would it make sense to squash in something like the
following?
-- %< --
Subject: Tweak 'git remote' usage strings
The set-head argument is not optional. <options>... is five
characters wider than it needs to be.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
builtin-remote.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/builtin-remote.c b/builtin-remote.c
index ee86810..cfd8a36 100644
--- a/builtin-remote.c
+++ b/builtin-remote.c
@@ -7,14 +7,14 @@
#include "run-command.h"
#include "refs.h"
-#define REMOTE_BARE_USAGE "git remote [<options>...]"
-#define REMOTE_ADD_USAGE "git remote add [<options>...] <name> <url>"
+#define REMOTE_BARE_USAGE "git remote [options]"
+#define REMOTE_ADD_USAGE "git remote add [options] <name> <url>"
#define REMOTE_RENAME_USAGE "git remote rename <old> <new>"
#define REMOTE_RM_USAGE "git remote rm <name>"
-#define REMOTE_SETHEAD_USAGE "git remote set-head <name> [<options>...]"
-#define REMOTE_SHOW_USAGE "git remote show [<options>...] <name>"
-#define REMOTE_PRUNE_USAGE "git remote prune [<options>...] <name>"
-#define REMOTE_UPDATE_USAGE "git remote update [<options>...]"
+#define REMOTE_SETHEAD_USAGE "git remote set-head <name> (-a|-d|<branch>)"
+#define REMOTE_SHOW_USAGE "git remote show [options] <name>"
+#define REMOTE_PRUNE_USAGE "git remote prune [options] <name>"
+#define REMOTE_UPDATE_USAGE "git remote update [options]"
static const char * const builtin_remote_usage[] = {
REMOTE_BARE_USAGE,
--
1.6.5.2
next prev parent reply other threads:[~2009-11-18 11:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-18 7:53 What's cooking in git.git (Nov 2009, #04; Tue, 17) Junio C Hamano
2009-11-18 8:22 ` Tay Ray Chuan
2009-11-18 8:40 ` Johannes Sixt
2009-11-19 18:11 ` Junio C Hamano
2009-11-18 11:48 ` Jonathan Nieder [this message]
2009-11-18 12:05 ` th/remote-usage Jonathan Nieder
2009-11-18 21:28 ` th/remote-usage Tim Henigan
2009-11-18 14:43 ` What's cooking in git.git (Nov 2009, #04; Tue, 17) Nguyen Thai Ngoc Duy
2009-11-18 16:12 ` Johannes Sixt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091118114808.GA13346@progeny.tock \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=tim.henigan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).