aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-11 13:55:10 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-11 13:55:10 -0700
commit84fe972055398ba0790ac0a8f159c79c83efcef4 (patch)
tree426bfebd8064b754e1f6ab7ad6ab81801310043d /Makefile
parent0dcad32ae239906217065b6a2b0fca41962e5d57 (diff)
downloadgit-84fe972055398ba0790ac0a8f159c79c83efcef4.tar.gz
git-84fe972055398ba0790ac0a8f159c79c83efcef4.tar.xz
Add a "rev-tree" helper, which calculates the revision
tree graph. It's quite fast when the commit-objects are cached, but since it has to walk every single commit-object, it also allows you to cache an old state and just add on top of that.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d09390c00..ddb4e3ecd 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 diff-tree
+ cat-file fsck-cache checkout-cache diff-tree rev-tree
all: $(PROG)
@@ -40,6 +40,9 @@ checkout-cache: checkout-cache.o read-cache.o
diff-tree: diff-tree.o read-cache.o
$(CC) $(CFLAGS) -o diff-tree diff-tree.o read-cache.o $(LIBS)
+rev-tree: rev-tree.o read-cache.o
+ $(CC) $(CFLAGS) -o rev-tree rev-tree.o read-cache.o $(LIBS)
+
read-cache.o: cache.h
show-diff.o: cache.h