git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
dfe3948
)
mktag: use puts(str) instead of printf("%s\n", str)
author
Ævar Arnfjörð Bjarmason
<redacted>
Tue, 5 Jan 2021 19:42:45 +0000
(20:42 +0100)
committer
Junio C Hamano
<redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/mktag.c
patch
|
blob
|
history
diff --git
a/builtin/mktag.c
b/builtin/mktag.c
index 97ca5f28b1b0cb437e52a8c14dbc25a7a9b3f3eb..d89a3c201de9a2409b197544bff16247f8b4e3e4 100644
(file)
--- 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);
- p
rintf("%s\n",
oid_to_hex(&result));
+ p
uts(
oid_to_hex(&result));
return 0;
}
git clone https://git.99rst.org/PROJECT