mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 07:29:21 +00:00
commit
95248be72f
@ -575,15 +575,16 @@ GIT_EXTERN(int) git_index_remove_bypath(git_index *index, const char *path);
|
|||||||
* This method will fail in bare index instances.
|
* This method will fail in bare index instances.
|
||||||
*
|
*
|
||||||
* The `pathspec` is a list of file names or shell glob patterns that will
|
* The `pathspec` is a list of file names or shell glob patterns that will
|
||||||
* matched against files in the repository's working directory. Each file
|
* be matched against files in the repository's working directory. Each
|
||||||
* that matches will be added to the index (either updating an existing
|
* file that matches will be added to the index (either updating an
|
||||||
* entry or adding a new entry). You can disable glob expansion and force
|
* existing entry or adding a new entry). You can disable glob expansion
|
||||||
* exact matching with the `GIT_INDEX_ADD_DISABLE_PATHSPEC_MATCH` flag.
|
* and force exact matching with the `GIT_INDEX_ADD_DISABLE_PATHSPEC_MATCH`
|
||||||
|
* flag.
|
||||||
*
|
*
|
||||||
* Files that are ignored will be skipped (unlike `git_index_add_bypath`).
|
* Files that are ignored will be skipped (unlike `git_index_add_bypath`).
|
||||||
* If a file is already tracked in the index, then it *will* be updated
|
* If a file is already tracked in the index, then it *will* be updated
|
||||||
* even if it is ignored. Pass the `GIT_INDEX_ADD_FORCE` flag to
|
* even if it is ignored. Pass the `GIT_INDEX_ADD_FORCE` flag to skip
|
||||||
* skip the checking of ignore rules.
|
* the checking of ignore rules.
|
||||||
*
|
*
|
||||||
* To emulate `git add -A` and generate an error if the pathspec contains
|
* To emulate `git add -A` and generate an error if the pathspec contains
|
||||||
* the exact path of an ignored file (when not using FORCE), add the
|
* the exact path of an ignored file (when not using FORCE), add the
|
||||||
|
Loading…
Reference in New Issue
Block a user