summaryrefslogtreecommitdiff
path: root/dir-iterator.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-06-18 04:15:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-20 18:38:20 (GMT)
commitd24b21e9fcaa9ed4b7966275a8d82406f578577d (patch)
treeb8f5e8f018519b6bf31dc4f0370d9ada1152559f /dir-iterator.h
parent4c4de89573fa29b7f97e7a9a3d0674dbdb6f2a28 (diff)
downloadgit-d24b21e9fcaa9ed4b7966275a8d82406f578577d.zip
git-d24b21e9fcaa9ed4b7966275a8d82406f578577d.tar.gz
git-d24b21e9fcaa9ed4b7966275a8d82406f578577d.tar.bz2
for_each_reflog(): don't abort for bad references
If there is a file under "$GIT_DIR/logs" with no corresponding reference, the old code was emitting an error message, aborting the reflog iteration, and returning -1. But * None of the callers was checking the exit value * The callers all want to find all legitimate reflogs (sometimes for the purpose of determining object reachability!) and wouldn't benefit from a truncated iteration anyway. So instead, emit an error message and skip the "broken" reflog, but continue with the iteration. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir-iterator.h')
0 files changed, 0 insertions, 0 deletions