rust-lang / git2-rs

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

Feature request: expose git_tree_create_fromindex #906

Closed benwr closed 1 year ago

benwr commented 1 year ago

I'm using this project in a setting where I need to save a tree from an (in-memory) index. libgit2 seems to have functionality for this (git_tree_create_fromindex) but from what I can tell this isn't exposed here. Am I missing something? If not, would it be difficult to add to this project?

[Edit: Actually it looks like this was removed in later versions of libgit2. Surely there's some other way to do this though?]

benwr commented 1 year ago

Never mind, I found write_tree. Sorry!