summaryrefslogtreecommitdiff
path: root/src/ignore.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-09-26 11:28:47 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-09-26 17:46:07 -0400
commit46508fe64737c2fe71d9e3221c56fbe0fae6996c (patch)
tree9345c682a32678d87574e3d8e7c2f7ea29fbd559 /src/ignore.c
parentf5a9f0a2587f4fa2d02ee74b0522a0fd99fabe98 (diff)
downloadlibgit2-ethomson/attr_longpaths.tar.gz
attr_file: don't take the `repo` as an argethomson/attr_longpaths
The `repo` argument is now unnecessary. Remove it.
Diffstat (limited to 'src/ignore.c')
-rw-r--r--src/ignore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ignore.c b/src/ignore.c
index f7551cddb..9ead96ba6 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -468,7 +468,7 @@ int git_ignore__lookup(
*out = GIT_IGNORE_NOTFOUND;
if (git_attr_path__init(
- &path, ignores->repo, pathname, git_repository_workdir(ignores->repo), dir_flag) < 0)
+ &path, pathname, git_repository_workdir(ignores->repo), dir_flag) < 0)
return -1;
/* first process builtins - success means path was found */
@@ -552,7 +552,7 @@ int git_ignore_path_is_ignored(
else if (git_repository_is_bare(repo))
dir_flag = GIT_DIR_FLAG_FALSE;
- if ((error = git_attr_path__init(&path, repo, pathname, workdir, dir_flag)) < 0 ||
+ if ((error = git_attr_path__init(&path, pathname, workdir, dir_flag)) < 0 ||
(error = git_ignore__for_path(repo, path.path, &ignores)) < 0)
goto cleanup;