Title: Theory / Important / CS / Softw / VCS / Git / Add
Tags: FromInstruction computer_to_instruction fromCommand fromMath hasNotNewEffectReturnsMeaning mathToDef some_instruction

Fla: add fileList
Effect: Add the current version of fileList to the staging area
Prefix: git
Chapter: 2

Fla: --patch
Effect: allow to interactively add part of files
Page: https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project
Prefix: git add
Chapter: 5
Section: 2

Fla: --dry-run
Effect: Don’t actually add the file(s), just show if they exist and/or will be ignored.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -n

Fla: --verbose
Effect: Be verbose
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -v

Fla: --force
Effect: Allow adding otherwise ignored files.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -f

Fla: --sparse
Effect: Allow updating index entries outside of the sparse-checkout cone.
Page: https://git-scm.com/docs/git-add
Prefix: git add

Fla: --interactive
Effect: Add modified contents in the working tree interactively to the index.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -i

Fla: --patch
Effect: Interactively choose hunks of patch between the index and the work tree and add them to the index.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -p

Fla: --edit
Effect: Open the diff vs. the index in an editor and let the user edit it. After the editor was closed, adjust the hunk headers and apply the patch to the index.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -e

Fla: --update
Effect: Update the index just where it already has an entry matching <pathspec>. This removes as well as modifies index entries to match the working tree, but adds no new files.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -u

Fla: --all --no-ignore-removal
Effect: Update the index not only where the working tree has a file matching <pathspec> but also where the index already has an entry. This adds, modifies, and removes index entries to match the working tree.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -A

Fla: --no-all
--ignore-removal
Effect: Update the index by adding new files that are unknown to the index and files modified in the working tree, but ignore files that have been removed from the working tree
Page: https://git-scm.com/docs/git-add
Prefix: git add
Extra: This option is primarily to help users who are used to older versions of Git, whose "git add <pathspec>…​" was a synonym for "git add --no-all <pathspec>…​", i.e. ignored removed files.

Fla: --intend-to-add
Effect: Record only the fact that the path will be added later. An entry for the path is placed in the index with no content.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Flag abbreviation: -N
Extra: This is useful for, among other things, showing the unstaged content of such files with git diff and committing them with git commit -a.

Fla: --refresh
Effect: Don’t add the file(s), but only refresh their stat() information in the index.
Page: https://git-scm.com/docs/git-add
Prefix: git add

Fla: --ignore-errors
Effect: If some files could not be added because of errors indexing them, do not abort the operation, but continue adding the others.
Page: https://git-scm.com/docs/git-add
Prefix: git add

Fla: --ignore-missing
Effect: By using this option the user can check if any of the given files would be ignored, no matter if they are already present in the work tree or not.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Assuming: --dry-run

Fla: --no-warn-embedded-repo
Effect: allow to manually perform operations of submodule without warning
Page: https://git-scm.com/docs/git-add
Prefix: git add

Fla: --renormalize
Effect: Apply the "clean" process freshly to all tracked files to forcibly add them again to the index.
Page: https://git-scm.com/docs/git-add
Prefix: git add
Extra: This is useful after changing core.autocrlf configuration or the text attribute in order to correct files added with wrong CRLF/LF line endings. This option implies -u.

Fla: --chmod=+x
Effect: make the files added executable in the staging area
Page: https://git-scm.com/docs/git-add
Prefix: git add

Fla: --chmod=-x
Effect: make the file non executable in staging area
Page: https://git-scm.com/docs/git-add
Prefix: git add

Fla: --pathspec-from-file=file
Effect: uses file to select pathspec
Page: https://git-scm.com/docs/git-add
Prefix: git add

Fla: --pathspec-file-nul
Effect: Consider that pathspec elements are separated with NUL character and all other characters are taken literally
Page: https://git-scm.com/docs/git-add
Prefix: git add
Assuming: --pathspec-from-file

Fla: --
Effect: all options after that are files and not flags
Page: https://git-scm.com/docs/git-add
Prefix: git add