From e74f8f6aa7807d479d78bfc680a18a9a5198b172 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 19 Apr 2005 21:00:09 -0700 Subject: Add "diff-cache" helper program to compare a tree (or commit) with the current cache state and/or working directory. Very useful to see what has changed since the last commit, either in the index file or in the whole working directory. Also very possibly very buggy. Matching the two up is not entirely trivial. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 57181be367..0d07b9a4d3 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ 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 + check-files ls-tree merge-base merge-cache unpack-file git-export \ + diff-cache all: $(PROG) @@ -84,15 +85,19 @@ unpack-file: unpack-file.o $(LIB_FILE) git-export: git-export.o $(LIB_FILE) $(CC) $(CFLAGS) -o git-export git-export.o $(LIBS) +diff-cache: diff-cache.o $(LIB_FILE) + $(CC) $(CFLAGS) -o diff-cache diff-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) +diff-cache.o: $(LIB_H) diff-tree.o: $(LIB_H) fsck-cache.o: $(LIB_H) -git_export.o: $(LIB_H) +git-export.o: $(LIB_H) init-db.o: $(LIB_H) ls-tree.o: $(LIB_H) merge-base.o: $(LIB_H) -- cgit v1.2.1