diff options
author | Russell Belfer <rb@github.com> | 2012-05-10 11:08:59 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-05-10 11:12:43 -0700 |
commit | dc13f1f7d71a22d6618c9a5db18335c005da9795 (patch) | |
tree | 83e03271144ce6779644f51021c6b5a7853798a0 /include/git2/status.h | |
parent | fb49bdf9c7837892154bf7efdb3db6c3ec63e396 (diff) | |
download | libgit2-dc13f1f7d71a22d6618c9a5db18335c005da9795.tar.gz |
Add cache busting to attribute cache
This makes the git attributes and git ignores cache check
stat information before using the file contents from the
cache. For cached files from the index, it checks the SHA
of the file instead. This should reduce the need to ever
call `git_attr_cache_flush()` in most situations.
This commit also fixes the `git_status_should_ignore` API
to use the libgit2 standard parameter ordering.
Diffstat (limited to 'include/git2/status.h')
-rw-r--r-- | include/git2/status.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/status.h b/include/git2/status.h index f5fc95f0a..0aff56a65 100644 --- a/include/git2/status.h +++ b/include/git2/status.h @@ -139,13 +139,13 @@ GIT_EXTERN(int) git_status_file(unsigned int *status_flags, git_repository *repo * would be ignored regardless of whether the file is already in the index * or in the repository. * + * @param ignored boolean returning 0 if the file is not ignored, 1 if it is * @param repo a repository object * @param path the file to check ignores for, rooted at the repo's workdir - * @param ignored boolean returning 0 if the file is not ignored, 1 if it is * @return GIT_SUCCESS if the ignore rules could be processed for the file * (regardless of whether it exists or not), or an error < 0 if they could not. */ -GIT_EXTERN(int) git_status_should_ignore(git_repository *repo, const char *path, int *ignored); +GIT_EXTERN(int) git_status_should_ignore(int *ignored, git_repository *repo, const char *path); /** @} */ GIT_END_DECL |