Commit 12b6af17 by Russell Belfer

Forgot to reset hunk & line between files

The last change tweaked the way we use the hunk_curr pointer
during iteration, but failed to reset the value back to NULL
when switching files.
parent 49d34c1c
...@@ -1285,8 +1285,9 @@ static void diffiter_do_unload_file(git_diff_iterator *iter) ...@@ -1285,8 +1285,9 @@ static void diffiter_do_unload_file(git_diff_iterator *iter)
} }
iter->ctxt.delta = NULL; iter->ctxt.delta = NULL;
iter->hunk_head = NULL; iter->hunk_curr = iter->hunk_head = NULL;
iter->hunk_count = 0; iter->hunk_count = 0;
iter->line_curr = NULL;
} }
int git_diff_iterator_new( int git_diff_iterator_new(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment