Skip to content

Commit 99bb98c

Browse files
authored
Merge pull request libgit2#4722 from boogisha/path-is-ignored-git-analogy
ignore: improve `git_ignore_path_is_ignored` description Git analogy
2 parents ee3baed + 9cab93c commit 99bb98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/git2/ignore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ GIT_EXTERN(int) git_ignore_clear_internal_rules(
5959
* given file. This indicates if the file would be ignored regardless of
6060
* whether the file is already in the index or committed to the repository.
6161
*
62-
* One way to think of this is if you were to do "git add ." on the
63-
* directory containing the file, would it be added or not?
62+
* One way to think of this is if you were to do "git check-ignore --no-index"
63+
* on the given file, would it be shown or not?
6464
*
6565
* @param ignored boolean returning 0 if the file is not ignored, 1 if it is
6666
* @param repo a repository object

0 commit comments

Comments
 (0)