Thread (108 messages) flat view 108 messages, 8 authors, 2026-02-25

Re: [PATCH v7 4/6] refs: receive and use the reference storage payload

From: Karthik Nayak <hidden>
Date: 2026-02-22 20:12:42

Toon Claes [off-list ref] writes:
Karthik Nayak [off-list ref] writes:
quoted
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index c7d2a6e50b..9a635f4e6c 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -666,4 +667,17 @@ enum ref_transaction_error refs_verify_refnames_available(struct ref_store *refs
 					  unsigned int initial_transaction,
 					  struct strbuf *err);

+/*
+ * Given a gitdir and the reference storage payload provided, retrieve the
+ * 'refdir' and 'ref_common_dir'. The former is where references should be
+ * stored for the current worktree, the latter is the common reference
+ * directory if working with a linked worktree. If working with the main
+ * worktree, both values will be the same.
+ *
+ * This is used by backends that store store files in the repository directly.
s/store store/store/

Also, shouldn't it be this?

* This is used by backends that store references in the repository directly.

--
Cheers,
Toon
I mean, it also stores the files themselves in the repository, but yours
is clearer, will change!

Attachments

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