Skip to content

Commit 7bd9bcf

Browse files
mhaggerpeff
authored andcommitted
refs: split filesystem-based refs code into a new file
As another step in the move to pluggable reference backends, move the code that is specific to the filesystem-based reference backend (i.e., the current system of storing references as loose and packed files) into a separate file, refs/files-backend.c. Aside from a tiny bit of file header boilerplate, this commit only moves a subset of the code verbatim from refs.c to the new file, as can easily be verified using patience diff: git diff --patience $commit^:refs.c $commit:refs.c git diff --patience $commit^:refs.c $commit:refs/files-backend.c Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 4cb7700 commit 7bd9bcf

File tree

3 files changed

+3761
-3752
lines changed

3 files changed

+3761
-3752
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ LIB_OBJS += reachable.o
768768
LIB_OBJS += read-cache.o
769769
LIB_OBJS += reflog-walk.o
770770
LIB_OBJS += refs.o
771+
LIB_OBJS += refs/files-backend.o
771772
LIB_OBJS += ref-filter.o
772773
LIB_OBJS += remote.o
773774
LIB_OBJS += replace_object.o
@@ -2419,7 +2420,7 @@ profile-clean:
24192420
$(RM) $(addsuffix *.gcno,$(addprefix $(PROFILE_DIR)/, $(object_dirs)))
24202421

24212422
clean: profile-clean coverage-clean
2422-
$(RM) *.o *.res block-sha1/*.o ppc/*.o compat/*.o compat/*/*.o
2423+
$(RM) *.o *.res refs/*.o block-sha1/*.o ppc/*.o compat/*.o compat/*/*.o
24232424
$(RM) xdiff/*.o vcs-svn/*.o ewah/*.o builtin/*.o
24242425
$(RM) $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB)
24252426
$(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X

0 commit comments

Comments
 (0)