Skip to contentSkip to conversation

commit: remove full stop from usage help for -u

PATCH New Stephen Boyd 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 commit: remove full stop from usage help for -u

Quoted 1 line

From api-parse-options.txt:

description is a short string to describe the effect of the option. It shall begin with a lower-case letter and a full stop (.) shall be omitted at the end.

It also makes it less confusing if the argument is 'no.' or 'no'.

---
 builtin/commit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
builtin/commit.c +1 -1
index c101f00..04f4c7d 100644
@@ -147,7 +147,7 @@ static struct option builtin_commit_options[] = {
 		    "terminate entries with NUL"),
 	OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
 	OPT_BOOLEAN(0, "no-post-rewrite", &no_post_rewrite, "bypass post-rewrite hook"),
-	{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no. (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
+	{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
 	/* end commit contents options */
 
 	{ OPTION_BOOLEAN, 0, "allow-empty", &allow_empty, NULL,
Signature · 1 line
1.7.2.19.g9a302