summaryrefslogtreecommitdiff
path: root/builtin/mktag.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2017-06-21 17:40:21 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-21 18:54:43 -0700
commitc84a1f3ed4d5314d2acc2bdca71b0bc5088423f9 (patch)
tree2f9ee95868dc8fa2d7bf3594706f9087485a9a62 /builtin/mktag.c
parentsha1_file: move delta base cache code up (diff)
downloadtgif-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/mktag.c')
0 files changed, 0 insertions, 0 deletions