From: Ævar Arnfjörð Bjarmason Date: Tue, 5 Jan 2021 19:42:45 +0000 (+0100) Subject: mktag: use puts(str) instead of printf("%s\n", str) X-Git-Tag: v2.31.0-rc0~111^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40ef015a2711ef603ab712e0a6882e24e980ef6d;p=thirdparty%2Fgit.git mktag: use puts(str) instead of printf("%s\n", str) 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/mktag.c b/builtin/mktag.c index 97ca5f28b1..d89a3c201d 100644 --- a/builtin/mktag.c +++ b/builtin/mktag.c @@ -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; }