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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Jan 5, 2021 at 20:42 UTC 40ef015a2711ef603ab712e0a6882e24e980ef6d
1 file changed +1 -1
builtin/mktag.c
+1 -1
@@ -173,6 +173,6 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
173 die("unable to write tag file");
174
175 strbuf_release(&buf);
176 - printf("%s\n", oid_to_hex(&result));
176 + puts(oid_to_hex(&result));
177 return 0;
178 }