rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.64k stars 380 forks source link

Tree iteration: Make skipping ahead more efficient #1004

Closed joshtriplett closed 6 months ago

joshtriplett commented 6 months ago

Implement TreeIter::nth to make jumping ahead more efficient, and add tests for it.

Might be easiest to read the three commits separately.