Skip to content

Commit f63cf8c

Browse files
pcloudsgitster
authored andcommitted
Use imperative form in help usage to describe an action
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b0ff965 commit f63cf8c

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

builtin/apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4297,7 +4297,7 @@ int cmd_apply(int argc, const char **argv, const char *prefix_)
42974297
OPT_NOOP_NOARG(0, "allow-binary-replacement"),
42984298
OPT_NOOP_NOARG(0, "binary"),
42994299
OPT_BOOLEAN(0, "numstat", &numstat,
4300-
N_("shows number of added and deleted lines in decimal notation")),
4300+
N_("show number of added and deleted lines in decimal notation")),
43014301
OPT_BOOLEAN(0, "summary", &summary,
43024302
N_("instead of applying the patch, output a summary for the input")),
43034303
OPT_BOOLEAN(0, "check", &check,

builtin/checkout-index.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
184184
int force = 0, quiet = 0, not_new = 0;
185185
struct option builtin_checkout_index_options[] = {
186186
OPT_BOOLEAN('a', "all", &all,
187-
N_("checks out all files in the index")),
188-
OPT__FORCE(&force, N_("forces overwrite of existing files")),
187+
N_("check out all files in the index")),
188+
OPT__FORCE(&force, N_("force overwrite of existing files")),
189189
OPT__QUIET(&quiet,
190190
N_("no warning for existing files and files not in index")),
191191
OPT_BOOLEAN('n', "no-create", &not_new,

builtin/config.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ static struct option builtin_config_options[] = {
5959
OPT_BIT(0, "get-all", &actions, N_("get all values: key [value-regex]"), ACTION_GET_ALL),
6060
OPT_BIT(0, "get-regexp", &actions, N_("get values for regexp: name-regex [value-regex]"), ACTION_GET_REGEXP),
6161
OPT_BIT(0, "replace-all", &actions, N_("replace all matching variables: name value [value_regex]"), ACTION_REPLACE_ALL),
62-
OPT_BIT(0, "add", &actions, N_("adds a new variable: name value"), ACTION_ADD),
63-
OPT_BIT(0, "unset", &actions, N_("removes a variable: name [value-regex]"), ACTION_UNSET),
64-
OPT_BIT(0, "unset-all", &actions, N_("removes all matches: name [value-regex]"), ACTION_UNSET_ALL),
62+
OPT_BIT(0, "add", &actions, N_("add a new variable: name value"), ACTION_ADD),
63+
OPT_BIT(0, "unset", &actions, N_("remove a variable: name [value-regex]"), ACTION_UNSET),
64+
OPT_BIT(0, "unset-all", &actions, N_("remove all matches: name [value-regex]"), ACTION_UNSET_ALL),
6565
OPT_BIT(0, "rename-section", &actions, N_("rename section: old-name new-name"), ACTION_RENAME_SECTION),
6666
OPT_BIT(0, "remove-section", &actions, N_("remove a section: name"), ACTION_REMOVE_SECTION),
6767
OPT_BIT('l', "list", &actions, N_("list all"), ACTION_LIST),
68-
OPT_BIT('e', "edit", &actions, N_("opens an editor"), ACTION_EDIT),
68+
OPT_BIT('e', "edit", &actions, N_("open an editor"), ACTION_EDIT),
6969
OPT_STRING(0, "get-color", &get_color_slot, N_("slot"), N_("find the color configured: [default]")),
7070
OPT_STRING(0, "get-colorbool", &get_colorbool_slot, N_("slot"), N_("find the color setting: [stdout-is-tty]")),
7171
OPT_GROUP(N_("Type")),

builtin/grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
682682
OPT_BOOLEAN(0, "cached", &cached,
683683
N_("search in index instead of in the work tree")),
684684
OPT_NEGBIT(0, "no-index", &use_index,
685-
N_("finds in contents not managed by git"), 1),
685+
N_("find in contents not managed by git"), 1),
686686
OPT_BOOLEAN(0, "untracked", &untracked,
687687
N_("search in both tracked and untracked files")),
688688
OPT_SET_INT(0, "exclude-standard", &opt_exclude,

builtin/push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
364364
OPT_BIT( 0, "porcelain", &flags, N_("machine-readable output"), TRANSPORT_PUSH_PORCELAIN),
365365
OPT_BIT('f', "force", &flags, N_("force updates"), TRANSPORT_PUSH_FORCE),
366366
{ OPTION_CALLBACK, 0, "recurse-submodules", &flags, N_("check"),
367-
N_("controls recursive pushing of submodules"),
367+
N_("control recursive pushing of submodules"),
368368
PARSE_OPT_OPTARG, option_parse_recurse_submodules },
369369
OPT_BOOLEAN( 0 , "thin", &thin, N_("use thin pack")),
370370
OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", N_("receive pack program")),

builtin/update-ref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
1616
int delete = 0, no_deref = 0, flags = 0;
1717
struct option options[] = {
1818
OPT_STRING( 'm', NULL, &msg, N_("reason"), N_("reason of the update")),
19-
OPT_BOOLEAN('d', NULL, &delete, N_("deletes the reference")),
19+
OPT_BOOLEAN('d', NULL, &delete, N_("delete the reference")),
2020
OPT_BOOLEAN( 0 , "no-deref", &no_deref,
2121
N_("update <refname> not the one it points to")),
2222
OPT_END(),

0 commit comments

Comments
 (0)