summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-09 16:53:05 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-09 16:53:05 (GMT)
commit33db5f4d9027a10e477ccf054b2c1ab94f74c85a (patch)
tree83941fd0e146733198bcc5fe8c06d50dc9e6c225 /Makefile
parent734aab758cc2b9f5e2ed43375dbfec1b5bfde43b (diff)
downloadgit-33db5f4d9027a10e477ccf054b2c1ab94f74c85a.zip
git-33db5f4d9027a10e477ccf054b2c1ab94f74c85a.tar.gz
git-33db5f4d9027a10e477ccf054b2c1ab94f74c85a.tar.bz2
Add a "checkout-cache" command which does what the name suggests.
I'll also eventually change "read-tree" to only update the cache information, instead of doing a checkout of the tree. Much nicer.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2b48356..42479f0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
CFLAGS=-g -O3 -Wall
CC=gcc
-PROG=update-cache show-diff init-db write-tree read-tree commit-tree cat-file fsck-cache
+PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
+ cat-file fsck-cache checkout-cache
all: $(PROG)
@@ -33,6 +34,9 @@ cat-file: cat-file.o read-cache.o
fsck-cache: fsck-cache.o read-cache.o
$(CC) $(CFLAGS) -o fsck-cache fsck-cache.o read-cache.o $(LIBS)
+checkout-cache: checkout-cache.o read-cache.o
+ $(CC) $(CFLAGS) -o checkout-cache checkout-cache.o read-cache.o $(LIBS)
+
read-cache.o: cache.h
show-diff.o: cache.h