Thread (22 messages) flat view 22 messages, 3 authors, 2016-06-15

Re: [PATCH 01/12] repack_without_ref(): split list curation and entry writing

From: Jeff King <hidden>
Date: 2016-06-15 22:57:42

On Tue, Jun 11, 2013 at 11:48:21PM +0200, Michael Haggerty wrote:
Split repack_without_ref() 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.
It took me several reads to figure out what was going on here, because I
did not see the deleted ref passed to the list of items to delete from
packed_refs. The part I was missing is something like:

  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:

     ...

Is that accurate?

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help