add¶
Command equivalent to git add hence many git add options are also valid options for this command.
Add files in working tree and process-stage. Following actions are performed:
Refresh working-tree.
Take snapshot.
Process names of supplied files (except for .) and send for add to process-stage.
Restricted options: {‘-N’, ‘-e’, ‘–no-warn-embedded-repo’, ‘–edit’, ‘–pathspec-from-file’, ‘–no-ignore-removal’, ‘-p’, ‘-A’, ‘–intent-to-add’, ‘–pathspec-file-nul’, ‘–interactive’, ‘-a’, ‘–ignore-removal’, ‘-i’, ‘–’, ‘–all’, ‘–patch’, ‘–no-all’, ‘–fixup’}.
usage: enc add [-h] [-v | -q] [-n] files_or_globs [files_or_globs ...]
Positional Arguments¶
- files_or_globs
File/Files to add. This is a required argument and single or multiple files can be provided as value for this argument. Behaves similar to git add <pathspec> and the <pathspec> will be passed down to git add command. ‘.’ is not yet supported.
Named Arguments¶
- -v, --verbose
- Specify verbosity level as -v, -vv or -vvv.
By default the VCS (Git) or OS call command logs are always displayed. For more fine grain tuning on the verbosity of logs use: -v to show INFO logs additionally. -vv to show INFO and DEBUG logs additionally. -vvv to show INFO, DEBUG and TRACE logs, this level also enables exception tracebacks.
- -q, --quiet
- Quiet logs as -q, -qq or -qqq.
By default the VCS (Git) or OS call command logs are always displayed. For more fine grain tuning on quietness of logs use: -q to Disable VCS (git) or OS call command logs and WARNINGS; ERROR and FATAL will still show. -qq to Additionally disable ERRORS; FATAL logs will still show. -qqq to Disable full logging.
- -n, --dry-run
Only process the files and do not add to the index.
Default:
False
Must be run from from the working-tree repo root.