about summary refs log tree commit diff
path: root/shared.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-12-06 11:35:49 +0100
committerLars Hjemli <hjemli@gmail.com>2008-12-06 11:35:49 +0100
commit9c8be943f72b6f1bda5a31ce401899c3dd734e98 (patch)
tree2279ad0a7d36563df7698d6d4e81967d67eb2562 /shared.c
parentMerge branch 'snapshot-fixes' (diff)
parentui-repolist: implement lazy caching of repo->mtime (diff)
downloadcgit-pink-9c8be943f72b6f1bda5a31ce401899c3dd734e98.tar.gz
cgit-pink-9c8be943f72b6f1bda5a31ce401899c3dd734e98.zip
Merge branch 'lh/sort-repolist'
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index f5875e4..89d1bab 100644
--- a/shared.c
+++ b/shared.c
@@ -60,6 +60,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
 	ret->enable_log_linecount = ctx.cfg.enable_log_linecount;
 	ret->module_link = ctx.cfg.module_link;
 	ret->readme = NULL;
+	ret->mtime = -1;
 	return ret;
 }