diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-06-21 17:40:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-21 18:54:43 -0700 |
commit | c84a1f3ed4d5314d2acc2bdca71b0bc5088423f9 (patch) | |
tree | 2f9ee95868dc8fa2d7bf3594706f9087485a9a62 /builtin/fsck.c | |
parent | sha1_file: move delta base cache code up (diff) | |
download | tgif-c84a1f3ed4d5314d2acc2bdca71b0bc5088423f9.tar.xz |
sha1_file: refactor read_object
read_object() and sha1_object_info_extended() both implement mechanisms
such as object replacement, retrying the packed store after failing to
find the object in the packed store then the loose store, and being able
to mark a packed object as bad and then retrying the whole process.
Consolidating these mechanisms would be a great help to maintainability.
Therefore, consolidate them by extending sha1_object_info_extended() to
support the functionality needed, and then modifying read_object() to
use sha1_object_info_extended().
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
0 files changed, 0 insertions, 0 deletions