Introduce a new empty midx-write.c source file. Similar to the relationship between "pack-bitmap.c" and "pack-bitmap-write.c", this source file will hold code that is specific to writing MIDX files as opposed to reading them (the latter will remain in midx.c). This is a preparatory step which will reduce the overall size of midx.c and make it easier to read as we prepare for future changes to that file (outside the immediate scope of this series). Signed-off-by: Taylor Blau <me@xxxxxxxxxxxx> --- Makefile | 1 + midx-write.c | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 midx-write.c diff --git a/Makefile b/Makefile index 4e255c81f2..cf44a964c0 100644 --- a/Makefile +++ b/Makefile @@ -1072,6 +1072,7 @@ LIB_OBJS += merge-ort-wrappers.o LIB_OBJS += merge-recursive.o LIB_OBJS += merge.o LIB_OBJS += midx.o +LIB_OBJS += midx-write.o LIB_OBJS += name-hash.o LIB_OBJS += negotiator/default.o LIB_OBJS += negotiator/noop.o diff --git a/midx-write.c b/midx-write.c new file mode 100644 index 0000000000..214179d308 --- /dev/null +++ b/midx-write.c @@ -0,0 +1,2 @@ +#include "git-compat-util.h" +#include "midx.h" -- 2.44.0.290.g736be63234b