rust-lang / git2-rs

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

Shouldn't the index.remove method take an enum? #870

Open JosuGZ opened 2 years ago

JosuGZ commented 2 years ago

This method (index.remove) takes an i32 as a stage param, but it is unclear what it does. There are some possible values on the libgit2 documentation, shouldn't be added as an enum?