summaryrefslogtreecommitdiff
path: root/sha1-array.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-06-20 10:37:44 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-20 15:50:17 -0700
commit267f9a8cc8192e120a6476fc55590e288e08b459 (patch)
treead59ff531db2c242f35813364dad3bf2a92ff587 /sha1-array.c
parent7b40d3963835699e138d21f6040a60c07e797853 (diff)
downloadgit-267f9a8cc8192e120a6476fc55590e288e08b459.tar.gz
pack_refs(): split creation of packed refs and entry writing
Split pack_refs() into multiple passes: * Iterate over loose refs. For each one that can be turned into a packed ref, create a corresponding entry in the packed refs cache. * Write the packed refs to the packed-refs file. This change isolates the mutation of the packed-refs file to a single place. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-array.c')
0 files changed, 0 insertions, 0 deletions