From 86436c28289eedd2ee9b7f9c872a0ed039866a0f Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 25 Apr 2005 18:22:47 -0700 Subject: [PATCH] Split external diff command interface to a separate file. With this patch, the non-core'ish part of show-diff command that invokes an external "diff" comand to obtain patches is split into a separate file. The next patch will introduce a new command, diff-tree-helper, which uses this common diff interface to format diff-tree and diff-cache output into a patch form. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 10d041b51f..e108b98e63 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,9 @@ LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o LIB_FILE=libgit.a LIB_H=cache.h object.h +LIB_H += diff.h +LIB_OBJS += diff.o + LIBS = $(LIB_FILE) LIBS += -lz @@ -67,6 +70,7 @@ checkout-cache.o: $(LIB_H) commit.o: $(LIB_H) commit-tree.o: $(LIB_H) convert-cache.o: $(LIB_H) +diff.o: $(LIB_H) diff-cache.o: $(LIB_H) diff-tree.o: $(LIB_H) fsck-cache.o: $(LIB_H) -- cgit v1.2.3