Interface AddAnxOptions

AddAnxOptions defines the supported options for the git-annex add command.

Hierarchy

Properties

--backend?: string

Specifies the key-value backend to use. Method GitAnnexAPI.getBackends obtains a list of backend names.

--debug?: null

Displays debug messages.

--debugfilter?: string | string[]

Shows debug messages coming from a module.

--dry-run?: null

Outputs what would be done for each file, but avoids making any changes.

--explain?: null

Displays explanations of what git-annex takes into account when deciding what to do.

--fast?: null

Avoids slow operations normally performed by a command.

--force?: null

Allows actions that may lose annexed data

--force-large?: null

Treats all files as large files, ignoring annex.largefiles and annex.dotfiles configuration, and adds to git-annex.

--force-small?: null

Treats all files as small files, ignoring annex.largefiles, annex.dotfiles and annex.addsmallfiles configuration, and adds to git.

--jobs?: string | number

Specifies the number of cores to use for adding multiple files in parallel.

--json?: null

Produces a JSON object on each line of output. Type predicate isActionResult may be passed to safeParse or safeParseToArray when processing the output.

--json-error-messages?: null

Includes error messages in the json instead of sending them to standard error.

--json-progress?: null

Includes progress objects in JSON output. Specifying --json-progress automatically enables --json. Type predicate isActionProgress may be passed to safeParse or safeParseToArray when processing the output.

--mincopies?: string | number

Overrides the mincopies setting.

--no-check-gitignore?: null

Adds gitignored files.

--no-debug?: null

Prevents debug message display.

--numcopies?: string | number

Overrides the numcopies setting.

--quiet?: null

Suppresses verbose output.

--size-limit?: string

Limits the total size of annexed files a git-annex command can process.

--time-limit?: string

Limits the duration of a git-annex command.

--update?: null

Updates to tracked files are added to the index.

--verbose?: null

Enables verbose display.

-c?: [string, string] | [string, string][]

Overrides Git configuration settings.

matching?: string | string[]

Specifies the file matching options.

Matching is an anonymous option. The name matching is not presented to the git-annex command. The values passed to the matching option are passed to git-annex in the order provided.

Consult the git-annex matching options documentation for the possible options.