Add a "checkout-cache" command which does what the name suggests.
[gitweb.git] / write-tree.c
index 921f981353229db0c56103a52609d35aff16f41b..6e531b40a84914cf1b37e12f8629fecbec0ae041 100644 (file)
@@ -1,3 +1,8 @@
+/*
+ * GIT - The information manager from hell
+ *
+ * Copyright (C) Linus Torvalds, 2005
+ */
 #include "cache.h"
 
 static int check_valid_sha1(unsigned char *sha1)
@@ -26,7 +31,7 @@ static int prepend_integer(char *buffer, unsigned val, int i)
 
 int main(int argc, char **argv)
 {
-       unsigned long size, offset, val;
+       unsigned long size, offset;
        int i, entries = read_cache();
        char *buffer;