summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-08-12 15:09:15 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2015-08-12 15:09:15 +0000
commit5753bb7ff62ce44d7e64447bee0a0c013c3dadcd (patch)
treead0fceb36884b0d78840fd51a7f08ffbbbbb4910
parent9849cc4906327ac9fb39a18cbfe2e4e77ca1e408 (diff)
downloadcgit-5753bb7ff62ce44d7e64447bee0a0c013c3dadcd.tar
cgit-5753bb7ff62ce44d7e64447bee0a0c013c3dadcd.tar.gz
cgit-5753bb7ff62ce44d7e64447bee0a0c013c3dadcd.zip
Add John's text
-rw-r--r--faq13
1 files changed, 13 insertions, 0 deletions
diff --git a/faq b/faq
index 9c3ff01..e940510 100644
--- a/faq
+++ b/faq
@@ -26,3 +26,16 @@ the .git directory.
A less likely cause is that the repo is, infact, not a valid repo. Try
to run 'git show' in the offending repo to see if git also thinks your
repo has issues.
+
+
+### Why is the idle time for my repository wrong?
+
+By default CGit uses the modification time of the default branch's ref
+file as a quick method of determining when the repository was last
+changed. If you primarily work on other branches then this work will
+not be reflected in the idle time.
+
+You can use a post-receive hook to run a script that tells CGit the
+correct modification time by writing to ``info/web/last-modified``. An
+example is provided in the CGit repository at
+``contrib/hooks/post-receive.agefile``.