]> git.ipfire.org Git - thirdparty/git.git/commit
trace2: use warning() directly in tr2_dst_malformed_warning()
authorRené Scharfe <l.s.r@web.de>
Sun, 25 Aug 2019 17:44:10 +0000 (19:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2019 18:34:23 +0000 (11:34 -0700)
commit1fd881d4046fb42f77ff9031ef07b7a18028ece0
tree4ee63f162ed2d7ee7fce2c6741c2c4ae6772fc51
parentbce9db6de97c95882a7c46836bb6cc90acf0fef0
trace2: use warning() directly in tr2_dst_malformed_warning()

Let warning() format the message instead of using an intermediate strbuf
for that.  This is shorter, easier to read and avoids an allocation.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace2/tr2_dst.c