summaryrefslogtreecommitdiff
path: root/src/ignore.c
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-02-22 15:15:35 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-02-22 15:15:35 -0800
commit0534641dfec001794ae9a83cfd1cfc7acaef97b7 (patch)
treed17e72af0ae9a9435aef29cc388d50a67a3cc0b0 /src/ignore.c
parentda337c806468d2d8a27dfa9ee5e75e476f5ad546 (diff)
downloadlibgit2-0534641dfec001794ae9a83cfd1cfc7acaef97b7.tar.gz
Fix iterators based on pull request feedback
This update addresses all of the feedback in pull request #570. The biggest change was to create actual linked list stacks for storing the tree and workdir iterator state. This cleaned up the code a ton. Additionally, all of the static functions had their 'git_' prefix removed, and a lot of other unnecessary changes were removed from the original patch.
Diffstat (limited to 'src/ignore.c')
-rw-r--r--src/ignore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ignore.c b/src/ignore.c
index ecdd76005..30f86b822 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -147,7 +147,7 @@ int git_ignore__pop_dir(git_ignores *ign)
if (ign->ign_path.length > 0) {
git_attr_file *file = git_vector_last(&ign->ign_path);
if (git__suffixcmp(ign->dir.ptr, file->path) == 0)
- git_vector_pop(&ign->ign_path, NULL);
+ git_vector_pop(&ign->ign_path);
git_buf_rtruncate_at_char(&ign->dir, '/');
}
return GIT_SUCCESS;