summaryrefslogtreecommitdiff
path: root/refs/packed-backend.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-09-25 10:00:16 +0200
committerJunio C Hamano <gitster@pobox.com>2017-09-25 18:02:46 +0900
commita6e19bcdadf782079cf88609b928519c2dee3378 (patch)
tree82272035a6ee84fb04e6c5fd717391cc28c628f7 /refs/packed-backend.c
parent9dd389f3d8d220d764beaca7237ac33de5de81c7 (diff)
downloadgit-a6e19bcdadf782079cf88609b928519c2dee3378.tar.gz
ref_cache: remove support for storing peeled values
Now that the `packed-refs` backend doesn't use `ref_cache`, there is nobody left who might want to store peeled values of references in `ref_cache`. So remove that feature. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/packed-backend.c')
-rw-r--r--refs/packed-backend.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c
index 3829e9c294..66e5525174 100644
--- a/refs/packed-backend.c
+++ b/refs/packed-backend.c
@@ -2,7 +2,6 @@
#include "../config.h"
#include "../refs.h"
#include "refs-internal.h"
-#include "ref-cache.h"
#include "packed-backend.h"
#include "../iterator.h"
#include "../lockfile.h"
@@ -227,6 +226,14 @@ static NORETURN void die_invalid_line(const char *path,
}
/*
+ * This value is set in `base.flags` if the peeled value of the
+ * current reference is known. In that case, `peeled` contains the
+ * correct peeled value for the reference, which might be `null_sha1`
+ * if the reference is not a tag or if it is broken.
+ */
+#define REF_KNOWS_PEELED 0x40
+
+/*
* An iterator over a packed-refs file that is currently mmapped.
*/
struct mmapped_ref_iterator {