summaryrefslogtreecommitdiffstats
path: root/submodule.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-03-21 02:22:28 +0100
committerJunio C Hamano <gitster@pobox.com>2017-03-21 19:12:53 +0100
commit116fb64e439d3744d0f244a51d7a6d714b7703ae (patch)
treeec3e23445081ec7fbb0bc5b711b5066ad83b42f5 /submodule.c
parentprefix_filename: move docstring to header file (diff)
downloadgit-116fb64e439d3744d0f244a51d7a6d714b7703ae.tar.xz
git-116fb64e439d3744d0f244a51d7a6d714b7703ae.zip
prefix_filename: drop length parameter
This function takes the prefix as a ptr/len pair, but in every caller the length is exactly strlen(ptr). Let's simplify the interface and just take the string. This saves callers specifying it (and in some cases handling a NULL prefix). In a handful of cases we had the length already without calling strlen, so this is technically slower. But it's not likely to matter (after all, if the prefix is non-empty we'll allocate and copy it into a buffer anyway). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.c')
0 files changed, 0 insertions, 0 deletions