diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-01-05 20:42:45 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-05 14:58:29 -0800 |
commit | 40ef015a2711ef603ab712e0a6882e24e980ef6d (patch) | |
tree | c736b188799f731ee2370a0d95d7cc807f571ec1 | |
parent | mktag: remove redundant braces in one-line body "if" (diff) | |
download | tgif-40ef015a2711ef603ab712e0a6882e24e980ef6d.tar.xz |
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>
-rw-r--r-- | builtin/mktag.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |