]> git.ipfire.org Git - thirdparty/git.git/commit - abspath.c
prefix_filename: simplify windows #ifdef
authorJeff King <peff@peff.net>
Tue, 21 Mar 2017 01:30:41 +0000 (21:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Mar 2017 18:18:41 +0000 (11:18 -0700)
commitaf10e8b1559790d5c78fcc2a1aae5c42f3930a00
tree3af9a091c1043fd65056d815c94419e914bdafcc
parente4da43b1f063d227b5f7d2922d27458748763a2d
prefix_filename: simplify windows #ifdef

The prefix_filename function used to do an early return when
there was no prefix on non-Windows platforms, but always
allocated on Windows so that it could call convert_slashes().

Now that the function always allocates, we can unify the
logic and make convert_slashes() the only conditional part.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
abspath.c