diff options
author | Chandra Pratap <chandrapratap3519@gmail.com> | 2024-08-21 18:00:57 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-21 09:41:41 -0700 |
commit | 29ee6d5a200e95df64d55a3e1fbbaa004f50c46c (patch) | |
tree | d43d6e7727d3c250d9ebc0d03176f0c40b8a874b /commit.h | |
parent | 31216ee28a452d39d9fba6cd72d8b072eab50af1 (diff) |
t-reftable-block: use xstrfmt() instead of xstrdup()
Use xstrfmt() to assign a formatted string to a ref record's
refname instead of xstrdup(). This helps save the overhead of
a local 'char' buffer as well as makes the test more compact.
Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions