]> git.ipfire.org Git - thirdparty/git.git/commitdiff
messages: mark some strings with "up-to-date" not to touch
authorJunio C Hamano <gitster@pobox.com>
Fri, 12 Jan 2024 17:19:10 +0000 (12:19 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jan 2024 18:20:01 +0000 (10:20 -0800)
The treewide clean-up of "up-to-date" strings done in 7560f547
(treewide: correct several "up-to-date" to "up to date", 2017-08-23)
deliberately left some out, but unlike the lines that were changed
by the commit, the lines that were deliberately left untouched by
the commit is impossible to ask "git blame" to link back to the
commit that did not touch them.

Let's do the second best thing, leave a short comment near them
explaining why those strings should not be modified or localized.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
[es: make in-code comment more developer-friendly]
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/send-pack.c
http-push.c
transport.c

index 64962be016825a47acddf374cd6ebf80db163af0..7a750b18a7bd5db87ed69c09602c2af9ddd66ce1 100644 (file)
@@ -338,6 +338,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
        }
 
        if (!ret && !transport_refs_pushed(remote_refs))
+               /* stable plumbing output; do not modify or localize */
                fprintf(stderr, "Everything up-to-date\n");
 
        return ret;
index 7f71316456c6832daa28bfc054f53b3224bf970f..785b3193429e0dcdde1c04211466a424a882b8a5 100644 (file)
@@ -1845,6 +1845,7 @@ int cmd_main(int argc, const char **argv)
 
                if (oideq(&ref->old_oid, &ref->peer_ref->new_oid)) {
                        if (push_verbosely)
+                               /* stable plumbing output; do not modify or localize */
                                fprintf(stderr, "'%s': up-to-date\n", ref->name);
                        if (helper_status)
                                printf("ok %s up to date\n", ref->name);
@@ -1865,6 +1866,7 @@ int cmd_main(int argc, const char **argv)
                                 * commits at the remote end and likely
                                 * we were not up to date to begin with.
                                 */
+                               /* stable plumbing output; do not modify or localize */
                                error("remote '%s' is not an ancestor of\n"
                                      "local '%s'.\n"
                                      "Maybe you are not up-to-date and "
index 70e9c188a398db37d316becb9f8393a46ab350c5..f5d5c2281242621abeadbd96b9dca3101200d648 100644 (file)
@@ -1419,6 +1419,7 @@ int transport_push(struct repository *r,
        if (porcelain && !push_ret)
                puts("Done");
        else if (!quiet && !ret && !transport_refs_pushed(remote_refs))
+               /* stable plumbing output; do not modify or localize */
                fprintf(stderr, "Everything up-to-date\n");
 
 done: