Move sha1_file_to_archive into libgit
PATCH 1/1 Move sha1_file_to_archive into libgit
When the specfile (export-subst) attribute was introduced, it added a dependency from archive-{tar|zip}.c to builtin-archive.c. This broke the support for archive-operations in libgit.a since builtin-archive.o doesn't belong in libgit.a.
This patch moves the functions required by libgit.a from builtin-archive.c to the new file archive.c (which becomes part of libgit.a).
Signed-off-by Lars Hjemli <[email protected]>
--- Makefile | 2 +- archive.c | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++ builtin-archive.c | 80 -------------------------------------------------- 3 files changed, 85 insertions(+), 81 deletions(-) create mode 100644 archive.c
Makefile +1 -1
@@ -316,7 +316,7 @@ LIB_OBJS = \ alloc.o merge-file.o path-list.o help.o unpack-trees.o $(DIFF_OBJS) \ color.o wt-status.o archive-zip.o archive-tar.o shallow.o utf8.o \ convert.o attr.o decorate.o progress.o mailmap.o symlinks.o remote.o \ - transport.o bundle.o walker.o parse-options.o ws.o + transport.o bundle.o walker.o parse-options.o ws.o archive.o BUILTIN_OBJS = \ builtin-add.o \
archive.c new file +84 -0
84 lines not on this page · raw message
builtin-archive.c +0 -80
86 lines not on this page · raw message
Signature · 1 line
1.5.4.rc2.69.g047fe-dirty