fetch: improve grammar of "shallow roots" message
PATCH 1/1 fetch: improve grammar of "shallow roots" message
--- builtin/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/fetch.c +1 -1
@@ -1123,7 +1123,7 @@ static int store_updated_refs(const char *raw_url, const char *remote_name,if (rm->status ==REF_STATUS_REJECT_SHALLOW ) {if (want_status ==FETCH_HEAD_MERGE ) -warning (_ ("reject %s because shallow roots are not allowed to be updated" ), +warning (_ ("rejected %s because shallow roots are not allowed to be updated" ), rm->peer_ref ? rm->peer_ref->name : rm->name);continue ; }
Signature · 1 line
2.31.1
Quoted 4 lines · Alex Henrie
Signed-off-by Alex Henrie <[email protected]>--- builtin/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This and the other one on setup.c both look good changes, but it's not like these messages are new breakages in the upcoming release whose -rc0 has already been tagged and call for help to translators has been issued, on which presumably translators are already working.
So please hold onto these patches until final; I might pick them up and keep them in 'seen' but I may not, and I do not want to see them lost.
Thanks.
Quoted 13 lines
builtin/fetch.c +1
-1@@ -1123,7 +1123,7 @@ static int store_updated_refs(const char *raw_url, const char *remote_name,if (rm->status ==REF_STATUS_REJECT_SHALLOW ) {if (want_status ==FETCH_HEAD_MERGE ) -warning (_ ("reject %s because shallow roots are not allowed to be updated" ), +warning (_ ("rejected %s because shallow roots are not allowed to be updated" ), rm->peer_ref ? rm->peer_ref->name : rm->name);continue ; }
Quoted 2 lines · Alex Henrie
- warning(_("reject %s because shallow roots are not allowed to be updated"),
+ warning(_("rejected %s because shallow roots are not allowed to be updated"),
This change to past-tense makes sense to me.
Thanks,
-Stolee
builtin/fetch.c static int store_updated_refs(const char *raw_url, const char *remote_name, · line 1126
Quoted 2 lines · Alex Henrie
builtin/fetch.c +1
-1- warning(_("reject %s because shallow roots are not allowed to be updated"), + warning(_("rejected %s because shallow roots are not allowed to be updated"),
From descriptive to null-subject past tense, right?
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 7 lines · Bagas Sanjaya
builtin/fetch.c static int store_updated_refs(const char *raw_url, const char *remote_name, · line 1126
Quoted 2 lines · Alex Henrie
builtin/fetch.c +1
-1- warning(_("reject %s because shallow roots are not allowed to be updated"), + warning(_("rejected %s because shallow roots are not allowed to be updated"),From descriptive to null-subject past tense, right?
I'm not sure what the best way is to describe the grammar here. I would say that the "ed" makes it clear that the message is a description of what did happen rather than an imperative command concerning what should happen.
-Alex
Bagas Sanjaya
Reviewed-byQuoted 7 lines · Alex Henrie
Quoted 6 lines · Bagas Sanjaya
Quoted 2 lines · Alex Henrie
builtin/fetch.c +1
-1- warning(_("reject %s because shallow roots are not allowed to be updated"), + warning(_("rejected %s because shallow roots are not allowed to be updated"),
Quoted 9 lines
Quoted 1 line
From descriptive to null-subject past tense, right?
I'm not sure what the best way is to describe the grammar here. I would say that the "ed" makes it clear that the message is a description of what did happen rather than an imperative command concerning what should happen.
-Alex
Looks OK.
So the error had happened, and we needed to express the situation. Because it happened on the past, using past tense was obviously the right thing.
Signature · 1 line
An old man doll... just what I always wanted! - Clara