worktree: extract basename computation to new function
commitf5682b2a861cbde6e9aca324caa5e2d36c49569a
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 6 Jul 2015 17:30:57 +0000 (6 13:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2015 18:07:48 +0000 (6 11:07 -0700)
treed24d90cd3abce149190b8a3e56eba3c9837e8462
parent0ca560cb975aa081971d0fb1586e0206156fa22f
worktree: extract basename computation to new function

A subsequent patch will also need to compute the basename of the new
worktree, so factor out this logic into a new function.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c