summaryrefslogtreecommitdiff
path: root/repository.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-04-22 13:42:55 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-22 13:42:55 -0700
commit95ca48973d351cdd40e6497b82ab85b95e432fab (patch)
tree9e275d3dad4046ec1f10fde07ee10cee21231449 /repository.h
parentMerge branch 'ma/config-doc-fix' (diff)
parentrepository: mark the "refs" pointer as private (diff)
downloadtgif-95ca48973d351cdd40e6497b82ab85b95e432fab.tar.xz
Merge branch 'jc/missing-ref-store-fix'
We've left the command line parsing of "git log :/a/b/" broken for about a full year without anybody noticing, which has been corrected. * jc/missing-ref-store-fix: repository: mark the "refs" pointer as private sha1-name: do not assume that the ref store is initialized
Diffstat (limited to 'repository.h')
-rw-r--r--repository.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/repository.h b/repository.h
index 040057dea6..6534fbb7b3 100644
--- a/repository.h
+++ b/repository.h
@@ -67,8 +67,12 @@ struct repository {
*/
struct parsed_object_pool *parsed_objects;
- /* The store in which the refs are held. */
- struct ref_store *refs;
+ /*
+ * The store in which the refs are held. This should generally only be
+ * accessed via get_main_ref_store(), as that will lazily initialize
+ * the ref object.
+ */
+ struct ref_store *refs_private;
/*
* Contains path to often used file names.