]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mktag: use puts(str) instead of printf("%s\n", str)
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 5 Jan 2021 19:42:45 +0000 (20:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Jan 2021 22:58:29 +0000 (14:58 -0800)
This introduces no functional change, but refactors the print-out of
the hash at the end to do the same thing with less code.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mktag.c

index 97ca5f28b1b0cb437e52a8c14dbc25a7a9b3f3eb..d89a3c201de9a2409b197544bff16247f8b4e3e4 100644 (file)
@@ -173,6 +173,6 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
                die("unable to write tag file");
 
        strbuf_release(&buf);
-       printf("%s\n", oid_to_hex(&result));
+       puts(oid_to_hex(&result));
        return 0;
 }