summaryrefslogtreecommitdiff
path: root/src/status.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-08-22 11:42:00 -0700
committerRussell Belfer <rb@github.com>2012-08-22 11:42:00 -0700
commit2fb4e9b3c5fb410164a32724e42a10d1841d02cc (patch)
treeedb68bc0e0070341ec8f4c7eb27915096858af70 /src/status.c
parentf004c4a8a78ec1ac109b0a0c78cdebe47a5df215 (diff)
downloadlibgit2-2fb4e9b3c5fb410164a32724e42a10d1841d02cc.tar.gz
Wrap up ignore API and add tests
This fills out the ignore API and adds tests.
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/status.c b/src/status.c
index 8e462552e..3d3d15d77 100644
--- a/src/status.c
+++ b/src/status.c
@@ -243,14 +243,6 @@ int git_status_should_ignore(
git_repository *repo,
const char *path)
{
- int error;
- git_ignores ignores;
-
- if (git_ignore__for_path(repo, path, &ignores) < 0)
- return -1;
-
- error = git_ignore__lookup(&ignores, path, ignored);
- git_ignore__free(&ignores);
- return error;
+ return git_ignore_path_is_ignored(ignored, repo, path);
}