Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-09 20:53:05 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-09 20:53:05 +0400
commit33db5f4d9027a10e477ccf054b2c1ab94f74c85a (patch)
tree83941fd0e146733198bcc5fe8c06d50dc9e6c225 /Makefile
parent734aab758cc2b9f5e2ed43375dbfec1b5bfde43b (diff)
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 2b483560f5..42479f0bc2 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