diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-01-06 17:22:32 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-07 19:30:09 -0800 |
commit | 854bda6b4f7d6bc6087966bfa74a59c232eceac6 (patch) | |
tree | 61c5f99232baeeae7146e1e3144aa7f9a4090182 /t | |
parent | log_ref_write(): inline function (diff) | |
download | tgif-854bda6b4f7d6bc6087966bfa74a59c232eceac6.tar.xz |
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>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions