]> git.ipfire.org Git - thirdparty/git.git/commit - refs/files-backend.c
log_ref_setup(): manage the name of the reflog file internally
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 6 Jan 2017 16:22:36 +0000 (17:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Jan 2017 03:30:09 +0000 (19:30 -0800)
commit4533e5343bb1171b932f787e345d6cff920a4e70
tree4f11c60bb7887d0f8b770bae48256c661b89ef98
parent87b21e05ed869806f865ada8f5d977ce99f18f20
log_ref_setup(): manage the name of the reflog file internally

Instead of writing the name of the reflog file into a strbuf that is
supplied by the caller but not needed there, write it into a local
temporary buffer and remove the strbuf parameter entirely.

And while we're adjusting the function signature, reorder the arguments
to move the input parameters before the output parameters.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c