Skip to content

Commit 9e1f22c

Browse files
Abhra303gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e6ebfd0 commit 9e1f22c

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

builtin/bisect--helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
12091209
OPT_CMDMODE(0, "bisect-visualize", &cmdmode,
12101210
N_("visualize the bisection"), BISECT_VISUALIZE),
12111211
OPT_CMDMODE(0, "bisect-run", &cmdmode,
1212-
N_("use <cmd>... to automatically bisect."), BISECT_RUN),
1212+
N_("use <cmd>... to automatically bisect"), BISECT_RUN),
12131213
OPT_BOOL(0, "no-log", &nolog,
12141214
N_("no log for BISECT_WRITE")),
12151215
OPT_END()

builtin/reflog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
600600
OPT_BIT(0, "updateref", &flags,
601601
N_("update the reference to the value of the top reflog entry"),
602602
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")),
604604
OPT_CALLBACK_F(0, "expire", &cmd, N_("timestamp"),
605605
N_("prune entries older than the specified time"),
606606
PARSE_OPT_NONEG,
@@ -613,7 +613,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
613613
N_("prune any reflog entries that point to broken commits")),
614614
OPT_BOOL(0, "all", &do_all, N_("process the reflogs of all references")),
615615
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")),
617617
OPT_END()
618618
};
619619

@@ -736,7 +736,7 @@ static int cmd_reflog_delete(int argc, const char **argv, const char *prefix)
736736
OPT_BIT(0, "updateref", &flags,
737737
N_("update the reference to the value of the top reflog entry"),
738738
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")),
740740
OPT_END()
741741
};
742742

builtin/submodule--helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,7 @@ static int module_clone(int argc, const char **argv, const char *prefix)
18751875
OPT_STRING(0, "depth", &clone_data.depth,
18761876
N_("string"),
18771877
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"),
18791879
OPT_BOOL(0, "progress", &progress,
18801880
N_("force cloning progress")),
18811881
OPT_BOOL(0, "require-init", &require_init,

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5630,7 +5630,7 @@ static void prep_parse_options(struct diff_options *options)
56305630
N_("select files by diff type"),
56315631
PARSE_OPT_NONEG, diff_opt_diff_filter),
56325632
{ OPTION_CALLBACK, 0, "output", options, N_("<file>"),
5633-
N_("Output to a specific file"),
5633+
N_("output to a specific file"),
56345634
PARSE_OPT_NONEG, NULL, 0, diff_opt_output },
56355635

56365636
OPT_END()

t/helper/test-run-command.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ static int quote_stress_test(int argc, const char **argv)
221221
struct strbuf out = STRBUF_INIT;
222222
struct strvec args = STRVEC_INIT;
223223
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"),
227227
OPT_END()
228228
};
229229
const char * const usage[] = {

0 commit comments

Comments
 (0)