diff options
author | Jeff King <peff@peff.net> | 2017-03-21 02:30:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-21 19:18:41 +0100 |
commit | af10e8b1559790d5c78fcc2a1aae5c42f3930a00 (patch) | |
tree | 3af9a091c1043fd65056d815c94419e914bdafcc /builtin/bundle.c | |
parent | prefix_filename: return newly allocated string (diff) | |
download | git-af10e8b1559790d5c78fcc2a1aae5c42f3930a00.tar.xz git-af10e8b1559790d5c78fcc2a1aae5c42f3930a00.zip |
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>
Diffstat (limited to 'builtin/bundle.c')
0 files changed, 0 insertions, 0 deletions