table of contents
datalad no-annex(1) | General Commands Manual | datalad no-annex(1) |
NAME¶
datalad no-annex - configure a dataset to never put some content into the dataset's annex
SYNOPSIS¶
datalad no-annex [-h] [-d DATASET] [--pattern PATTERN [PATTERN ...]] [--ref-dir REF_DIR] [--makedirs] [--version]
DESCRIPTION¶
This can be useful in mixed datasets that also contain textual data, such as source code, which can be efficiently and more conveniently managed directly in Git.
Patterns generally look like this::
code/*
which would match all file in the code directory. In order to match all files under ``code/``, including all its subdirectories use such a pattern::
code/**
Note that this command works incrementally, hence any existing configuration (e.g. from a previous plugin run) is amended, not replaced.
OPTIONS¶
- -h, --help, --help-np
- show this help message. --help-np forcefully disables the use of a pager for displaying the help message
- -d DATASET, --dataset DATASET
- "specify the dataset to configure. If no dataset is given, an attempt is made to identify the dataset based on the current working directory. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) or value must be NONE
- --pattern PATTERN [PATTERN ...]
- list of path patterns. Any content whose path is matching any pattern will not be annexed when added to a dataset, but instead will be tracked directly in Git. Path pattern have to be relative to the directory given by the REF_DIR option. By default, patterns should be relative to the root of the dataset.
- --ref-dir REF_DIR
- Relative path (within the dataset) to the directory that is to be configured. All patterns are interpreted relative to this path, and configuration is written to a ``.gitattributes`` file in this directory. [Default: '.']
- --makedirs
- If set, any missing directories will be created in order to be able to place a file into ``--ref-dir``.
- --version
- show the module and its version which provides the command
AUTHORS¶
datalad is developed by The DataLad Team and Contributors <team@datalad.org>.
2023-01-25 | datalad no-annex 0.18.1 |