summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-09 20:00:54 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-09 20:00:54 (GMT)
commit9174026cfe69d73ef80b27890615f8b2ef5c265a (patch)
treed4a96ba891017d0d26c15e509b4e6515e40d75ee /Makefile
parent79517a067a293ddf19867e363f0d9237c7ef8e22 (diff)
downloadgit-9174026cfe69d73ef80b27890615f8b2ef5c265a.zip
git-9174026cfe69d73ef80b27890615f8b2ef5c265a.tar.gz
git-9174026cfe69d73ef80b27890615f8b2ef5c265a.tar.bz2
Add "diff-tree" program to show which files have changed between two trees.
Very useful for creating diffs efficiently, and in general to see what has changed in the namespace.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 42479f0..d09390c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CFLAGS=-g -O3 -Wall
CC=gcc
PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
- cat-file fsck-cache checkout-cache
+ cat-file fsck-cache checkout-cache diff-tree
all: $(PROG)
@@ -37,6 +37,9 @@ fsck-cache: fsck-cache.o read-cache.o
checkout-cache: checkout-cache.o read-cache.o
$(CC) $(CFLAGS) -o checkout-cache checkout-cache.o read-cache.o $(LIBS)
+diff-tree: diff-tree.o read-cache.o
+ $(CC) $(CFLAGS) -o diff-tree diff-tree.o read-cache.o $(LIBS)
+
read-cache.o: cache.h
show-diff.o: cache.h