Skip to content

Commit 40ef015

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dfe3948 commit 40ef015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/mktag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,6 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
173173
die("unable to write tag file");
174174

175175
strbuf_release(&buf);
176-
printf("%s\n", oid_to_hex(&result));
176+
puts(oid_to_hex(&result));
177177
return 0;
178178
}

0 commit comments

Comments
 (0)