worktree: use strbuf_add_absolute_path() directly
commitfd2e7dafdeef4e9ba3c023427deb4e21ba5b31a8
authorRené Scharfe <l.s.r@web.de>
Sat, 9 Jul 2016 15:43:59 +0000 (9 17:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jul 2016 22:11:01 +0000 (12 15:11 -0700)
tree77389b26aad88d1bd575df2443114f989dbc189c
parent5c9159de87e41cf14ec5f2132afb5a06f35c26b3
worktree: use strbuf_add_absolute_path() directly

absolute_path() is a wrapper for strbuf_add_absolute_path().  Call the
latter directly for adding absolute paths to a strbuf.  That's shorter
and avoids an extra string copy.

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