summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-02-13 21:39:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-13 21:39:06 (GMT)
commit867622398f7e7a8a7c6e7a5418e7cbdcffc44d02 (patch)
tree7e42f2fe39327130caa1fdbfc221b85b8cb3a163 /cache.h
parentafc8aa3fbf249cfc2f75c7586b9d32f172ab97a1 (diff)
parentec2dd32c705f43ef133a54cee99426c44eb3ab88 (diff)
downloadgit-867622398f7e7a8a7c6e7a5418e7cbdcffc44d02.zip
git-867622398f7e7a8a7c6e7a5418e7cbdcffc44d02.tar.gz
git-867622398f7e7a8a7c6e7a5418e7cbdcffc44d02.tar.bz2
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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cache.h b/cache.h
index 666d307..7414eb4 100644
--- a/cache.h
+++ b/cache.h
@@ -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;