From: Nguyễn Thái Ngọc Duy Date: Sun, 22 May 2016 09:33:52 +0000 (+0700) Subject: worktree.c: rewrite mark_current_worktree() to avoid strbuf X-Git-Tag: v2.10.0-rc0~160^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/360af2dadaae70f29de2f21d4eb8ac38aefcc263?hp=360af2dadaae70f29de2f21d4eb8ac38aefcc263 worktree.c: rewrite mark_current_worktree() to avoid strbuf strbuf is a bit overkill for this function. What we need is to call absolute_path() twice and make sure the second call does not destroy the result of the first. One buffer allocation is enough. Signed-off-by: Nguyễn Thái Ngọc Duy Reviewed-by: Eric Sunshine Signed-off-by: Junio C Hamano ---