Re: [PATCH v5 18/26] refs: move transaction functions into common code
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Nov 1, 2015, 08:17 UTC
- Message-ID
- <5635CA8A.2080505@alum.mit.edu>
- In-Reply-To
- <1445998467-11511-19-git-send-email-dturner@twopensource.com>
On 10/28/2015 03:14 AM, David Turner wrote:
Show 6 quoted lines
> The common ref code will build up a ref transaction. Backends will > then commit it. So the transaction creation and update functions should > be in the common code. We also need to move the ref structs into > the common code so that alternate backends can access them. > > Later, we will modify struct ref_update to support alternate backends.
I would prefer that this and later patches *not* add declarations to the public API in refs.h for functions and data that are only meant to be used by other reference backends.
So I'm working on a modified version of your series that declares such functions in refs-internal.h [1] instead. I hope to submit it tomorrow.
Actually, I have half a mind to move all of the refs-related files to a subdirectory, like
refs.h
refs/refs.c
refs/refs-internal.h
refs/refs-be-files.c
refs/refs-be-lmdb.c <- still to comeWhat would you think of that?
Michael
[1] We've discussed this idea earlier, using the tentative names refs-shared.h or refs-common.h.
-- Michael Haggerty mhagger@alum.mit.edu