]> git.ipfire.org Git - thirdparty/git.git/commit - path.c
path: use strbuf_add_real_path()
authorRené Scharfe <l.s.r@web.de>
Sun, 1 Oct 2017 14:44:06 +0000 (16:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2017 04:13:41 +0000 (13:13 +0900)
commitfa2bb34477120f18d0834a545ac777e6295650d2
tree0530f5a19e16c26bb648e5b65ffe059124e0a8cf
parentea220ee40cbb03a63ebad2be902057bf742492fd
path: use strbuf_add_real_path()

Avoid a string copy to a static buffer by using strbuf_add_real_path()
instead of combining strbuf_addstr() and real_path().

Patch generated by Coccinelle and contrib/coccinelle/strbuf.cocci.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c