summaryrefslogtreecommitdiff
path: root/read-tree.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-11 15:47:57 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-11 15:47:57 -0700
commit4bb04f2190d526f8917663f0be62d8026e1ed100 (patch)
tree5f7966de3b4b60260db3b510e6efeab94e55f37a /read-tree.c
parent9614b8dcf8f295b6063d2a85bf8ec53960b072b6 (diff)
downloadgit-4bb04f2190d526f8917663f0be62d8026e1ed100.tar.gz
Rename ".dircache" directory to ".git"
I started out calling the tool "dircache". That's clearly moronic.
Diffstat (limited to 'read-tree.c')
-rw-r--r--read-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/read-tree.c b/read-tree.c
index 5c9d38ba58..dc24e91b09 100644
--- a/read-tree.c
+++ b/read-tree.c
@@ -68,7 +68,7 @@ static int remove_lock = 0;
static void remove_lock_file(void)
{
if (remove_lock)
- unlink(".dircache/index.lock");
+ unlink(".git/index.lock");
}
int main(int argc, char **argv)
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
int i, newfd;
unsigned char sha1[20];
- newfd = open(".dircache/index.lock", O_RDWR | O_CREAT | O_EXCL, 0600);
+ newfd = open(".git/index.lock", O_RDWR | O_CREAT | O_EXCL, 0600);
if (newfd < 0)
usage("unable to create new cachefile");
atexit(remove_lock_file);
@@ -99,7 +99,7 @@ int main(int argc, char **argv)
usage("failed to unpack tree object %s", arg);
}
if (write_cache(newfd, active_cache, active_nr) ||
- rename(".dircache/index.lock", ".dircache/index"))
+ rename(".git/index.lock", ".git/index"))
usage("unable to write new index file");
remove_lock = 0;
return 0;