File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -575,15 +575,16 @@ GIT_EXTERN(int) git_index_remove_bypath(git_index *index, const char *path);
575575 * This method will fail in bare index instances.
576576 *
577577 * The `pathspec` is a list of file names or shell glob patterns that will
578- * matched against files in the repository's working directory. Each file
579- * that matches will be added to the index (either updating an existing
580- * entry or adding a new entry). You can disable glob expansion and force
581- * exact matching with the `GIT_INDEX_ADD_DISABLE_PATHSPEC_MATCH` flag.
578+ * be matched against files in the repository's working directory. Each
579+ * file that matches will be added to the index (either updating an
580+ * existing entry or adding a new entry). You can disable glob expansion
581+ * and force exact matching with the `GIT_INDEX_ADD_DISABLE_PATHSPEC_MATCH`
582+ * flag.
582583 *
583584 * Files that are ignored will be skipped (unlike `git_index_add_bypath`).
584585 * If a file is already tracked in the index, then it *will* be updated
585- * even if it is ignored. Pass the `GIT_INDEX_ADD_FORCE` flag to
586- * skip the checking of ignore rules.
586+ * even if it is ignored. Pass the `GIT_INDEX_ADD_FORCE` flag to skip
587+ * the checking of ignore rules.
587588 *
588589 * To emulate `git add -A` and generate an error if the pathspec contains
589590 * the exact path of an ignored file (when not using FORCE), add the
You can’t perform that action at this time.
0 commit comments