diff options
author | Clément Lassieur <clement@lassieur.org> | 2018-08-12 21:19:38 +0200 |
---|---|---|
committer | Clément Lassieur <clement@lassieur.org> | 2018-08-13 00:29:47 +0200 |
commit | efb22b47dbafff233e0a2d332d019270297be8b5 (patch) | |
tree | 1becef8a167ad83816b23189ca4fb18399f61f88 /gnu/services/cgit.scm | |
parent | 162c8ab82e25214f27b8f727799a7cfb83de3932 (diff) | |
download | patches-efb22b47dbafff233e0a2d332d019270297be8b5.tar patches-efb22b47dbafff233e0a2d332d019270297be8b5.tar.gz |
services: cgit: Disable repo booleans having a global counterpart.
Otherwise the global counterpart is never taken into account.
* doc/guix.texi (Version Control Services): Update accordingly.
* gnu/services/cgit.scm (repo-boolean?, serialize-repo-boolean): Use the
DEFINE-MAYBE macro to allow for the 'disabled value.
(repository-cgit-configuration)[enable-commit-graph?, enable-log-filecount?,
enable-log-linecount?, enable-remote-branches?, enable-subject-links?,
enable-html-serving?]: Change default value to 'disabled.
Diffstat (limited to 'gnu/services/cgit.scm')
-rw-r--r-- | gnu/services/cgit.scm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gnu/services/cgit.scm b/gnu/services/cgit.scm index 3289d37333..a84a2dadb2 100644 --- a/gnu/services/cgit.scm +++ b/gnu/services/cgit.scm @@ -149,6 +149,7 @@ (define (serialize-repo-boolean field-name val) (serialize-repo-integer field-name (if val 1 0))) +(define-maybe repo-boolean) (define repo-list? list?) @@ -239,27 +240,27 @@ is no suitable HEAD.") (repo-file-object "") "Override the default @code{email-filter}.") (enable-commit-graph? - (repo-boolean #f) + (maybe-repo-boolean 'disabled) "A flag which can be used to disable the global setting @code{enable-commit-graph?}.") (enable-log-filecount? - (repo-boolean #f) + (maybe-repo-boolean 'disabled) "A flag which can be used to disable the global setting @code{enable-log-filecount?}.") (enable-log-linecount? - (repo-boolean #f) + (maybe-repo-boolean 'disabled) "A flag which can be used to disable the global setting @code{enable-log-linecount?}.") (enable-remote-branches? - (repo-boolean #f) + (maybe-repo-boolean 'disabled) "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views.") (enable-subject-links? - (repo-boolean #f) + (maybe-repo-boolean 'disabled) "A flag which can be used to override the global setting @code{enable-subject-links?}.") (enable-html-serving? - (repo-boolean #f) + (maybe-repo-boolean 'disabled) "A flag which can be used to override the global setting @code{enable-html-serving?}.") (hide? |