From d98b46f8d9a3daf965a39f8c0089c1401e0081ee Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 20 Apr 2005 01:10:46 -0700 Subject: Do SHA1 hash _before_ compression. And add a "convert-cache" program to convert from old-style to new-style. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0d07b9a4d3..cd299f8506 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ AR=ar PROG= update-cache show-diff init-db write-tree read-tree commit-tree \ cat-file fsck-cache checkout-cache diff-tree rev-tree show-files \ check-files ls-tree merge-base merge-cache unpack-file git-export \ - diff-cache + diff-cache convert-cache all: $(PROG) @@ -88,12 +88,16 @@ git-export: git-export.o $(LIB_FILE) diff-cache: diff-cache.o $(LIB_FILE) $(CC) $(CFLAGS) -o diff-cache diff-cache.o $(LIBS) +convert-cache: convert-cache.o $(LIB_FILE) + $(CC) $(CFLAGS) -o convert-cache convert-cache.o $(LIBS) + blob.o: $(LIB_H) cat-file.o: $(LIB_H) check-files.o: $(LIB_H) checkout-cache.o: $(LIB_H) commit.o: $(LIB_H) commit-tree.o: $(LIB_H) +convert-cache.o: $(LIB_H) diff-cache.o: $(LIB_H) diff-tree.o: $(LIB_H) fsck-cache.o: $(LIB_H) -- cgit v1.2.1