rust-lang / git2-rs

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

Creating an in-memory Git repository #693

Open Bauxitedev opened 3 years ago

Bauxitedev commented 3 years ago

libgit2 supports creating an in-memory repository that doesn't write to disk at all. This is useful for applications that only need to clone a repo once to do some analysis and then discard them.

See https://stackoverflow.com/a/39864196 for an example.

It seems git2-rs does not support this.. Or haven't I looked hard enough?

matsp commented 2 years ago

It's not the supported at the moment, but is there an attempt to implement it?

Some1and2-XC commented 3 months ago

This would be cool but seems very hard