Namespaces

Types in GitSharp.Commands

Type UpdateIndexCommand

Namespace GitSharp.Commands

Parent AbstractCommand

Properties

Public properties

string ActualDirectory get;

bool Add get; set;

Not implemented If a specified file isn't in the index already then it's added. Default behaviour is to ignore new files.

bool Again get; set;

Not implemented Runs 'git-update-index' itself on the paths whose index entries are different from those from the `HEAD` commit.

List<string> Arguments get; set;

bool AssumeUnchanged get; set;

Not implemented When these flags are specified, the object names recorded for the paths are not updated. Instead, these options set and unset the "assume unchanged" bit for the paths. When the "assume unchanged" bit is on, git stops checking the working tree files for possible modifications, so you need to manually unset the bit to tell git when you change the working tree file. This is sometimes helpful when working with a big project on a filesystem that has very slow lstat(2) system call (e.g. cifs). + This option can be also used as a coarse file-level mechanism to ignore uncommitted changes in tracked files (akin to what `.gitignore` does for untracked files). You should remember that an explicit 'git add' operation will still cause the file to be refreshed from the working tree. Git will fail (gracefully) in case it needs to modify this file in the index e.g. when merging in a commit; thus, in case the assumed-untracked file is changed upstream, you will need to handle the situation manually.

string Cacheinfo get; set;

Not implemented Directly insert the specified info into the index.

string Chmod get; set;

Not implemented Set the execute permissions on the updated files.

bool ForceRemove get; set;

Not implemented Remove the file from the index even when the working directory still has such a file. (Implies --remove.)

string GitDirectory get; set;

bool IgnoreMissing get; set;

Not implemented Ignores missing files during a --refresh

bool IgnoreSubmodules get; set;

Not implemented Do not try to update submodules. This option is only respected when passed before --refresh.

bool IndexInfo get; set;

Not implemented Read index information from stdin.

bool InfoOnly get; set;

Not implemented Do not create objects in the object database for all arguments that follow this flag; just insert their object IDs into the index.

bool NoAssumeUnchanged get; set;

Not implemented When these flags are specified, the object names recorded for the paths are not updated. Instead, these options set and unset the "assume unchanged" bit for the paths. When the "assume unchanged" bit is on, git stops checking the working tree files for possible modifications, so you need to manually unset the bit to tell git when you change the working tree file. This is sometimes helpful when working with a big project on a filesystem that has very slow lstat(2) system call (e.g. cifs). + This option can be also used as a coarse file-level mechanism to ignore uncommitted changes in tracked files (akin to what `.gitignore` does for untracked files). You should remember that an explicit 'git add' operation will still cause the file to be refreshed from the working tree. Git will fail (gracefully) in case it needs to modify this file in the index e.g. when merging in a commit; thus, in case the assumed-untracked file is changed upstream, you will need to handle the situation manually.

StreamWriter OutputStream get; set;

bool Q get; set;

Not implemented Quiet. If --refresh finds that the index needs an update, the default behavior is to error out. This option makes 'git-update-index' continue anyway.

bool ReallyRefresh get; set;

Not implemented Like '--refresh', but checks stat information unconditionally, without regard to the "assume unchanged" setting.

bool Refresh get; set;

Not implemented Looks at the current index and checks to see if merges or updates are needed by checking stat() information.

bool Remove get; set;

Not implemented If a specified file is in the index but is missing then it's removed. Default behavior is to ignore removed file.

bool Replace get; set;

Not implemented By default, when a file `path` exists in the index, 'git-update-index' refuses an attempt to add `path/file`. Similarly if a file `path/file` exists, a file `path` cannot be added. With --replace flag, existing entries that conflict with the entry being added are automatically removed with warning messages.

Repository Repository get; set;

bool Stdin get; set;

Not implemented Instead of taking list of paths from the command line, read list of paths from the standard input. Paths are separated by LF (i.e. one path per line) by default.

bool Unmerged get; set;

Not implemented If --refresh finds unmerged changes in the index, the default behavior is to error out. This option makes 'git-update-index' continue anyway.

bool Unresolve get; set;

Not implemented Restores the 'unmerged' or 'needs updating' state of a file during a merge if it was cleared by accident.

bool Verbose get; set;

Not implemented Report what is being added and removed from index.

bool Z get; set;

Not implemented Only meaningful with `--stdin`; paths are separated with NUL character instead of LF.