log_ref_write_1(): don't depend on logfile argument
commit87b21e05ed869806f865ada8f5d977ce99f18f20
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 6 Jan 2017 16:22:35 +0000 (6 17:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Jan 2017 03:30:09 +0000 (7 19:30 -0800)
tree9bf3b88e866bf30ee10f52565abc7174b9f0c36a
parente404f459fdc0d42e9ea83084cb1acdd241c14de3
log_ref_write_1(): don't depend on logfile argument

It's unnecessary to pass a strbuf holding the reflog path up and down
the call stack now that it is hardly needed by the callers. Remove the
places where log_ref_write_1() uses it, in preparation for making it
internal to log_ref_setup().

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