File: config.rst

package info (click to toggle)
datalad 1.1.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,140 kB
  • sloc: python: 69,392; sh: 1,521; makefile: 220
file content (57 lines) | stat: -rw-r--r-- 2,128 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.. _configuration:

Configuration
*************

DataLad uses the same configuration mechanism and syntax as Git itself.
Consequently, datalad can be configured using the :command:`git config`
command. Both a *global* user configuration (typically at
:file:`~/.gitconfig`), and a *local* repository-specific configuration
(:file:`.git/config`) are inspected.

In addition, datalad supports a persistent dataset-specific configuration.
This configuration is stored at :file:`.datalad/config` in any dataset.  As it
is part of a dataset, settings stored there will also be in effect for any
consumer of such a dataset. Both *global* and *local* settings on a particular
machine always override configuration shipped with a dataset.

All datalad-specific configuration variables are prefixed with ``datalad.``.

It is possible to override or amend the configuration using environment
variables. Any variable with a name that starts with ``DATALAD_`` will
be available as the corresponding ``datalad.`` configuration variable,
replacing any ``__`` (two underscores) with a hyphen, then any ``_``
(single underscore) with a dot, and finally converting all letters to
lower case. Values from environment variables take precedence over
configuration file settings.

In addition, the ``DATALAD_CONFIG_OVERRIDES_JSON`` environment variable can
be set to a JSON record with configuration values.  This is
particularly useful for options that aren't accessible through the
naming scheme described above (e.g., an option name that includes an
underscore).

The following sections provide a (non-exhaustive) list of settings honored
by datalad. They are categorized according to the scope they are typically
associated with.


Global user configuration
=========================

.. include:: generated/cfginfo/global.rst.in

Local repository configuration
==============================

.. include:: generated/cfginfo/local.rst.in

Sticky dataset configuration
=============================

.. include:: generated/cfginfo/dataset.rst.in

Miscellaneous configuration
===========================

.. include:: generated/cfginfo/misc.rst.in