amend remaining usage strings according to style guide

Usage strings for git (sub)command flags has a style guide that suggests - first letter should not capitalized (unless required) and it should skip full-stop at the end of line. But there are some files where usage-strings do not follow the above mentioned guide. Amend the usage strings that don't follow the style convention/guide. Signed-off-by: Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Abhradeep Chakraborty committed Feb 23, 2022 at 14:27 UTC 9e1f22c8ad1dc51d510af68278776beb00378c07
5 files changed +9 -9
builtin/bisect--helper.c
+1 -1
@@ -1209,7 +1209,7 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
1209 OPT_CMDMODE(0, "bisect-visualize", &cmdmode,
1210 N_("visualize the bisection"), BISECT_VISUALIZE),
1211 OPT_CMDMODE(0, "bisect-run", &cmdmode,
1212 - N_("use <cmd>... to automatically bisect."), BISECT_RUN),
1212 + N_("use <cmd>... to automatically bisect"), BISECT_RUN),
1213 OPT_BOOL(0, "no-log", &nolog,
1214 N_("no log for BISECT_WRITE")),
1215 OPT_END()
builtin/reflog.c
+3 -3
@@ -600,7 +600,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
600 OPT_BIT(0, "updateref", &flags,
601 N_("update the reference to the value of the top reflog entry"),
602 EXPIRE_REFLOGS_UPDATE_REF),
603 - OPT_BOOL(0, "verbose", &verbose, N_("print extra information on screen.")),
603 + OPT_BOOL(0, "verbose", &verbose, N_("print extra information on screen")),
604 OPT_CALLBACK_F(0, "expire", &cmd, N_("timestamp"),
605 N_("prune entries older than the specified time"),
606 PARSE_OPT_NONEG,
@@ -613,7 +613,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
613 N_("prune any reflog entries that point to broken commits")),
614 OPT_BOOL(0, "all", &do_all, N_("process the reflogs of all references")),
615 OPT_BOOL(1, "single-worktree", &all_worktrees,
616 - N_("limits processing to reflogs from the current worktree only.")),
616 + N_("limits processing to reflogs from the current worktree only")),
617 OPT_END()
618 };
619
@@ -736,7 +736,7 @@ static int cmd_reflog_delete(int argc, const char **argv, const char *prefix)
736 OPT_BIT(0, "updateref", &flags,
737 N_("update the reference to the value of the top reflog entry"),
738 EXPIRE_REFLOGS_UPDATE_REF),
739 - OPT_BOOL(0, "verbose", &verbose, N_("print extra information on screen.")),
739 + OPT_BOOL(0, "verbose", &verbose, N_("print extra information on screen")),
740 OPT_END()
741 };
742
builtin/submodule--helper.c
+1 -1
@@ -1875,7 +1875,7 @@ static int module_clone(int argc, const char **argv, const char *prefix)
1875 OPT_STRING(0, "depth", &clone_data.depth,
1876 N_("string"),
1877 N_("depth for shallow clones")),
1878 - OPT__QUIET(&quiet, "Suppress output for cloning a submodule"),
1878 + OPT__QUIET(&quiet, "suppress output for cloning a submodule"),
1879 OPT_BOOL(0, "progress", &progress,
1880 N_("force cloning progress")),
1881 OPT_BOOL(0, "require-init", &require_init,
diff.c
+1 -1
@@ -5630,7 +5630,7 @@ static void prep_parse_options(struct diff_options *options)
5630 N_("select files by diff type"),
5631 PARSE_OPT_NONEG, diff_opt_diff_filter),
5632 { OPTION_CALLBACK, 0, "output", options, N_("<file>"),
5633 - N_("Output to a specific file"),
5633 + N_("output to a specific file"),
5634 PARSE_OPT_NONEG, NULL, 0, diff_opt_output },
5635
5636 OPT_END()
t/helper/test-run-command.c
+3 -3
@@ -221,9 +221,9 @@ static int quote_stress_test(int argc, const char **argv)
221 struct strbuf out = STRBUF_INIT;
222 struct strvec args = STRVEC_INIT;
223 struct option options[] = {
224 - OPT_INTEGER('n', "trials", &trials, "Number of trials"),
225 - OPT_INTEGER('s', "skip", &skip, "Skip <n> trials"),
226 - OPT_BOOL('m', "msys2", &msys2, "Test quoting for MSYS2's sh"),
224 + OPT_INTEGER('n', "trials", &trials, "number of trials"),
225 + OPT_INTEGER('s', "skip", &skip, "skip <n> trials"),
226 + OPT_BOOL('m', "msys2", &msys2, "test quoting for MSYS2's sh"),
227 OPT_END()
228 };
229 const char * const usage[] = {