summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-10-16 16:16:02 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-16 16:16:02 +0900
commit993fa5625876306ff1de0cbc5d70fc1b232568b9 (patch)
tree3b189efca15713a184fa054404745626d9306c6b /Documentation
parentMerge branch 'jn/gc-auto-prep' (diff)
parentgc: do not return error for prior errors in daemonized mode (diff)
downloadtgif-993fa5625876306ff1de0cbc5d70fc1b232568b9.tar.xz
Merge branch 'jn/gc-auto'
"gc --auto" ended up calling exit(-1) upon error, which has been corrected to use exit(1). Also the error reporting behaviour when daemonized has been updated to exit with zero status when stopping due to a previously discovered error (which implies there is no point running gc to improve the situation); we used to exit with failure in such a case. * jn/gc-auto: gc: do not return error for prior errors in daemonized mode
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index c9f8b72df7..7d58253368 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1643,7 +1643,8 @@ gc.writeCommitGraph::
for details.
gc.logExpiry::
- If the file gc.log exists, then `git gc --auto` won't run
+ If the file gc.log exists, then `git gc --auto` will print
+ its content and exit with status zero instead of running
unless that file is more than 'gc.logExpiry' old. Default is
"1.day". See `gc.pruneExpire` for more ways to specify its
value.