Skip to content

Commit 958f964

Browse files
mhaggergitster
authored andcommitted
refs: split ref_cache code into separate files
The `ref_cache` code is currently too tightly coupled to `files-backend`, making the code harder to understand and making it awkward for new code to use `ref_cache` (as we indeed have planned). Start loosening that coupling by splitting `ref_cache` into a separate module. This commit moves code, adds declarations, and changes the visibility of some functions, but doesn't change any code. The modules are still too tightly coupled, but the situation will be improved in subsequent commits. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9fc3b06 commit 958f964

File tree

4 files changed

+767
-733
lines changed

4 files changed

+767
-733
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,7 @@ LIB_OBJS += reflog-walk.o
807807
LIB_OBJS += refs.o
808808
LIB_OBJS += refs/files-backend.o
809809
LIB_OBJS += refs/iterator.o
810+
LIB_OBJS += refs/ref-cache.o
810811
LIB_OBJS += ref-filter.o
811812
LIB_OBJS += remote.o
812813
LIB_OBJS += replace_object.o

0 commit comments

Comments
 (0)