diff options
author | James Moger <james.moger@gitblit.com> | 2012-10-30 17:01:57 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-10-30 17:01:57 -0400 |
commit | e26d9338ddc5f0f0440947e60013a57b82043783 (patch) | |
tree | 753d7620585655734292ee66adc7f44b550d20be /distrib | |
parent | f5cbd026002eed8209368e9071726dfb67183e81 (diff) | |
download | gitblit-e26d9338ddc5f0f0440947e60013a57b82043783.tar.gz gitblit-e26d9338ddc5f0f0440947e60013a57b82043783.zip |
Refactor GC period into an integer for simpler translations
Also hooked-up GC settings in the Manager.
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/gitblit.properties | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/distrib/gitblit.properties b/distrib/gitblit.properties index 43432294..411699ff 100644 --- a/distrib/gitblit.properties +++ b/distrib/gitblit.properties @@ -110,6 +110,8 @@ git.defaultAuthorizationControl = NAMED # Enable JGit-based garbage collection. (!!EXPERIMENTAL!!)
#
+# USE AT YOUR OWN RISK!
+#
# If enabled, the garbage collection executor scans all repositories once a day
# at the hour of your choosing. The GC executor will take each repository "offline",
# one-at-a-time, to check if the repository satisfies it's GC trigger requirements.
@@ -121,8 +123,6 @@ git.defaultAuthorizationControl = NAMED # especially on Windows systems, so if you are using other tools please coordinate
# their usage with your GC Executor schedule or do not use this feature.
#
-# Use this feature at your own risk!
-#
# The GC algorithm complex and the JGit team advises caution when using their
# young implementation of GC.
#
@@ -148,8 +148,8 @@ git.garbageCollectionHour = 0 # SINCE 1.2.0
git.defaultGarbageCollectionThreshold = 500k
-# The default period between GCs for a repository. If the total filesize of the
-# loose object exceeds *git.garbageCollectionThreshold* or the repository's
+# The default period, in days, between GCs for a repository. If the total filesize
+# of the loose object exceeds *git.garbageCollectionThreshold* or the repository's
# custom threshold, this period will be short-circuited.
#
# e.g. if a repository collects 100KB of loose objects every day with a 500KB
@@ -167,7 +167,7 @@ git.defaultGarbageCollectionThreshold = 500k # The minimum value is 1 day since the GC Executor only runs once a day.
#
# SINCE 1.2.0
-git.defaultGarbageCollectionPeriod = 7 days
+git.defaultGarbageCollectionPeriod = 7
# Number of bytes of a pack file to load into memory in a single read operation.
# This is the "page size" of the JGit buffer cache, used for all pack access
|