Commit 95248be7 by Edward Thomson Committed by GitHub

Merge pull request #4127 from Uncommon/comment

Minor comment fix
parents a59545de 19874e29
...@@ -575,15 +575,16 @@ GIT_EXTERN(int) git_index_remove_bypath(git_index *index, const char *path); ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment