Skip to contentSkip to conversation

submodule: use the imperative mood to describe the --files option

PATCH In review Alex Henrie 3 participants 3 messages May 16, 2021 – May 17, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 submodule: use the imperative mood to describe the --files option

---
 builtin/submodule--helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/submodule--helper.c +1 -1
index d55f6262e9..ae6174ab05 100644
@@ -1300,7 +1300,7 @@ static int module_summary(int argc, const char **argv, const char *prefix)
 		OPT_BOOL(0, "cached", &cached,
 			 N_("use the commit stored in the index instead of the submodule HEAD")),
 		OPT_BOOL(0, "files", &files,
-			 N_("to compare the commit in the index with that in the submodule HEAD")),
+			 N_("compare the commit in the index with that in the submodule HEAD")),
 		OPT_BOOL(0, "for-status", &for_status,
 			 N_("skip submodules with 'ignore_config' value set to 'all'")),
 		OPT_INTEGER('n', "summary-limit", &summary_limit,
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Alex,

builtin/submodule--helper.c static int module_summary(int argc, const char **argv, const char *prefix) · line 1303

Quoted 2 lines · Alex Henrie
builtin/submodule--helper.c +1 -1
-			 N_("to compare the commit in the index with that in the submodule HEAD")),
+			 N_("compare the commit in the index with that in the submodule HEAD")),

Seems correct.

FYI, on my native language (Indonesian), we say "Review yourself" as "Tinjau dirimu" for imperative mood. Unfortunately many imperative sentences on software l10n instead prefix the verb with "me-", such as "meninjau dirimu". That is not imperative mood; that is descriptive mood with infinitive verb form.

Anyway, thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#2 lore raw
In reply to Alex Henrie
Quoted 10 lines · Alex Henrie
---
 builtin/submodule--helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/submodule--helper.c +0 -0
index d55f6262e9..ae6174ab05 100644

builtin/submodule--helper.c static int module_summary(int argc, const char **argv, const char *prefix) · line 1306

Quoted 8 lines
builtin/submodule--helper.c +1 -1
@@ -1300,7 +1300,7 @@ static int module_summary(int argc, const char **argv, const char *prefix)
 		OPT_BOOL(0, "cached", &cached,
 			 N_("use the commit stored in the index instead of the submodule HEAD")),
 		OPT_BOOL(0, "files", &files,
-			 N_("to compare the commit in the index with that in the submodule HEAD")),
+			 N_("compare the commit in the index with that in the submodule HEAD")),
 		OPT_BOOL(0, "for-status", &for_status,
 			 N_("skip submodules with 'ignore_config' value set to 'all'")),
 		OPT_INTEGER('n', "summary-limit", &summary_limit,

Unlike many other helper functions in this file, this one is likely to survive when the remainder of "git submodule" scripted Porcelain is rewritten in C, so it is a good idea to update it with this patch.

Thanks, will queue.