diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2013-06-20 10:37:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-20 15:50:16 -0700 |
commit | 7b40d3963835699e138d21f6040a60c07e797853 (patch) | |
tree | 207da50433373522c1e77db5ba10cdbffc698da9 /http.h | |
parent | Merge branch 'mh/reflife' (diff) | |
download | tgif-7b40d3963835699e138d21f6040a60c07e797853.tar.xz |
repack_without_ref(): split list curation and entry writing
The repack_without_ref() function first removes the deleted ref from
the internal packed-refs list, then writes the packed-refs list to
disk, omitting any broken or stale entries. This patch splits that
second step into multiple passes:
* collect the list of refnames that should be deleted from packed_refs
* delete those refnames from the cache
* write the remainder to the packed-refs file
The purpose of this change is to make the "write the remainder" part
reusable.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.h')
0 files changed, 0 insertions, 0 deletions