diff options
| author | Attila Lendvai <attila@lendvai.name> | 2022-05-17 13:39:28 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-06-15 00:25:21 +0200 |
| commit | 8cb1a49a3998c39f315a4199b7d4a121a6d66449 (patch) | |
| tree | 6467f9cb21bc9f60b6f2a2f561d690b5cfdb3b3d /gnu/services/cgit.scm | |
| parent | e11517052b1bbd9fa06891ad0b13b24494db757e (diff) | |
services: configuration: Use *unspecified* instead of 'disabled.
Use *unspecified* as a marker for field values that have not been set.
Rationale: 'disabled may easily clash with user values for boolean fields, is
confusing (i.e. its meaning is *not* boolean false, but unspecified) and it
also passes silently through the symbol? predicate of a field of type symbol.
* gnu/services/configuration.scm (configuration-missing-default-value):
Renamed from configuration-no-default-value.
(define-maybe-helper): Use *unspecified* instead of 'disabled, and make
the default value optional.
* gnu/home/services/desktop.scm (home-redshift-configuration):
Change (maybe-xyz 'disabled) to maybe-xyz.
* gnu/services/authentication.scm (nslcd-configuration): Likewise.
* gnu/services/cgit.scm (repository-cgit-configuration): Likewise.
* gnu/services/file-sharing.scm (serialize-maybe-string)
(serialize-maybe-file-object): Use 'unspecified?' instead of (eq? val
'disabled).
* gnu/services/messaging.scm (raw-content?): Likewise.
(ssl-configuration): Change (maybe-xyz 'disabled) to maybe-xyz.
(prosody-configuration): Likewise.
* gnu/services/file-sharing.scm (transmission-daemon-configuration):
Likewise.
* gnu/services/messaging.scm (define-all-configurations):
Use *unspecified* instead of 'disabled'.
* gnu/services/networking.scm (opendht-configuration): Likewise.
* gnu/services/pm.scm (tlp-configuration): Likewise.
* gnu/services/telephony.scm (jami-account): Likewise.
(jami-configuration): Likewise.
* gnu/services/vpn.scm (openvpn-client-configuration): Likewise.
* tests/services/configuration.scm ("maybe type, no default")
("maybe type, with default"): New tests.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/cgit.scm')
| -rw-r--r-- | gnu/services/cgit.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/services/cgit.scm b/gnu/services/cgit.scm index bfc89a40a4d..c2c003983a2 100644 --- a/gnu/services/cgit.scm +++ b/gnu/services/cgit.scm | |||
| @@ -241,27 +241,27 @@ is no suitable HEAD.") | |||
| 241 | (repo-file-object "") | 241 | (repo-file-object "") |
| 242 | "Override the default @code{email-filter}.") | 242 | "Override the default @code{email-filter}.") |
| 243 | (enable-commit-graph? | 243 | (enable-commit-graph? |
| 244 | (maybe-repo-boolean 'disabled) | 244 | maybe-repo-boolean |
| 245 | "A flag which can be used to disable the global setting | 245 | "A flag which can be used to disable the global setting |
| 246 | @code{enable-commit-graph?}.") | 246 | @code{enable-commit-graph?}.") |
| 247 | (enable-log-filecount? | 247 | (enable-log-filecount? |
| 248 | (maybe-repo-boolean 'disabled) | 248 | maybe-repo-boolean |
| 249 | "A flag which can be used to disable the global setting | 249 | "A flag which can be used to disable the global setting |
| 250 | @code{enable-log-filecount?}.") | 250 | @code{enable-log-filecount?}.") |
| 251 | (enable-log-linecount? | 251 | (enable-log-linecount? |
| 252 | (maybe-repo-boolean 'disabled) | 252 | maybe-repo-boolean |
| 253 | "A flag which can be used to disable the global setting | 253 | "A flag which can be used to disable the global setting |
| 254 | @code{enable-log-linecount?}.") | 254 | @code{enable-log-linecount?}.") |
| 255 | (enable-remote-branches? | 255 | (enable-remote-branches? |
| 256 | (maybe-repo-boolean 'disabled) | 256 | maybe-repo-boolean |
| 257 | "Flag which, when set to @code{#t}, will make cgit display remote | 257 | "Flag which, when set to @code{#t}, will make cgit display remote |
| 258 | branches in the summary and refs views.") | 258 | branches in the summary and refs views.") |
| 259 | (enable-subject-links? | 259 | (enable-subject-links? |
| 260 | (maybe-repo-boolean 'disabled) | 260 | maybe-repo-boolean |
| 261 | "A flag which can be used to override the global setting | 261 | "A flag which can be used to override the global setting |
| 262 | @code{enable-subject-links?}.") | 262 | @code{enable-subject-links?}.") |
| 263 | (enable-html-serving? | 263 | (enable-html-serving? |
| 264 | (maybe-repo-boolean 'disabled) | 264 | maybe-repo-boolean |
| 265 | "A flag which can be used to override the global setting | 265 | "A flag which can be used to override the global setting |
| 266 | @code{enable-html-serving?}.") | 266 | @code{enable-html-serving?}.") |
| 267 | (hide? | 267 | (hide? |
