git-commit-vandalism/refs
Michael Haggerty 854bda6b4f log_ref_setup(): separate code for create vs non-create
The behavior of this function (especially how it handles errors) is
quite different depending on whether we are willing to create the reflog
vs. whether we are only trying to open an existing reflog. So separate
the code paths.

This also simplifies the next steps.

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>
2017-01-07 19:30:09 -08:00
..
files-backend.c log_ref_setup(): separate code for create vs non-create 2017-01-07 19:30:09 -08:00
iterator.c do_for_each_ref(): reimplement using reference iteration 2016-06-20 11:38:20 -07:00
refs-internal.h refname_is_safe(): correct docstring 2017-01-07 19:30:08 -08:00