From: Jeff King Date: Thu, 20 Aug 2015 14:49:45 +0000 (-0400) Subject: get_urlmatch: avoid useless strbuf write X-Git-Tag: v2.6.0-rc0~25^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a92330d21c13cf244d8045f5c9d1df6e63893d58?hp=a92330d21c13cf244d8045f5c9d1df6e63893d58 get_urlmatch: avoid useless strbuf write We create a strbuf only to insert a single string, pass the resulting buffer to a function (which does not modify the string), and then free it. We can just pass the original string instead. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---