@@ -51,7 +51,7 @@ static void process_blob(struct rev_info *revs,
if (!(obj->flags & USER_GIVEN) && filter_fn)
r = filter_fn(LOFS_BLOB, obj,
path->buf, &path->buf[pathlen],
- &the_index,
+ revs->repo->index,
filter_data);
if (r & LOFR_MARK_SEEN)
obj->flags |= SEEN;
@@ -137,7 +137,7 @@ static void process_tree(struct rev_info *revs,
if (!(obj->flags & USER_GIVEN) && filter_fn)
r = filter_fn(LOFS_BEGIN_TREE, obj,
base->buf, &base->buf[baselen],
- &the_index,
+ revs->repo->index,
filter_data);
if (r & LOFR_MARK_SEEN)
obj->flags |= SEEN;
@@ -177,7 +177,7 @@ static void process_tree(struct rev_info *revs,
if (!(obj->flags & USER_GIVEN) && filter_fn) {
r = filter_fn(LOFS_END_TREE, obj,
base->buf, &base->buf[baselen],
- &the_index,
+ revs->repo->index,
filter_data);
if (r & LOFR_MARK_SEEN)
obj->flags |= SEEN;
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> --- list-objects.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)