aboutsummaryrefslogtreecommitdiff
path: root/update-cache.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 /update-cache.c
parent9614b8dcf8f295b6063d2a85bf8ec53960b072b6 (diff)
downloadgit-4bb04f2190d526f8917663f0be62d8026e1ed100.tar.gz
git-4bb04f2190d526f8917663f0be62d8026e1ed100.tar.xz
Rename ".dircache" directory to ".git"
I started out calling the tool "dircache". That's clearly moronic.
Diffstat (limited to 'update-cache.c')
-rw-r--r--update-cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/update-cache.c b/update-cache.c
index ea956e47b..25db78908 100644
--- a/update-cache.c
+++ b/update-cache.c
@@ -205,7 +205,7 @@ static void refresh_cache(void)
/*
* We fundamentally don't like some paths: we don't want
* dot or dot-dot anywhere, and in fact, we don't even want
- * any other dot-files (.dircache or anything else). They
+ * any other dot-files (.git or anything else). They
* are hidden, for chist sake.
*
* Also, we don't want double slashes or slashes at the
@@ -235,7 +235,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)
@@ -243,7 +243,7 @@ int main(int argc, char **argv)
int i, newfd, entries;
int allow_options = 1;
- 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");
@@ -284,7 +284,7 @@ int main(int argc, char **argv)
usage("Unable to add %s to database", path);
}
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 cachefile");
remove_lock = 0;