diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:06 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:06 -0800 |
commit | 867622398f7e7a8a7c6e7a5418e7cbdcffc44d02 (patch) | |
tree | 7e42f2fe39327130caa1fdbfc221b85b8cb3a163 /cache.h | |
parent | Merge branch 'ot/mru-on-list' (diff) | |
parent | mru: Replace mru.[ch] with list.h implementation (diff) | |
download | tgif-867622398f7e7a8a7c6e7a5418e7cbdcffc44d02.tar.xz |
Merge branch 'gs/retire-mru'
Retire mru API as it does not give enough abstraction over
underlying list API to be worth it.
* gs/retire-mru:
mru: Replace mru.[ch] with list.h implementation
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ #include "git-compat-util.h" #include "strbuf.h" #include "hashmap.h" -#include "mru.h" +#include "list.h" #include "advice.h" #include "gettext.h" #include "convert.h" @@ -1638,6 +1638,7 @@ struct pack_window { extern struct packed_git { struct packed_git *next; + struct list_head mru; struct pack_window *windows; off_t pack_size; const void *index_data; @@ -1660,10 +1661,9 @@ extern struct packed_git { } *packed_git; /* - * A most-recently-used ordered version of the packed_git list, which can - * be iterated instead of packed_git (and marked via mru_mark). + * A most-recently-used ordered version of the packed_git list. */ -extern struct mru packed_git_mru; +extern struct list_head packed_git_mru; struct pack_entry { off_t offset; |