rust-lang / git2-rs

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

Add `Repository::set_head_bytes()`; like `set_head()` but bytes-only. #931

Closed drmikehenry closed 1 year ago

drmikehenry commented 1 year ago

This allows setting HEAD to non-utf8 reference names.

This pull request closes #925.