Even if gix cant do everything git2 can do, users can keep using git2 feature until gix is as good. Adding alpha support for gix will get us ready for when gix adds the missing features.
https://github.com/Byron/gitoxide has support for cloning , but the cli doesnt have gix clone -b rev, but it can clone the default branch.
Possibly the rev checkout code exists under the hood, or could be added upstream.
Split off from https://github.com/kstasik/schema-tools/issues/89
Even if gix cant do everything git2 can do, users can keep using git2 feature until gix is as good. Adding alpha support for gix will get us ready for when gix adds the missing features.
https://github.com/Byron/gitoxide has support for cloning , but the cli doesnt have
gix clone -b rev
, but it can clone the default branch.Possibly the rev checkout code exists under the hood, or could be added upstream.
https://github.com/Byron/gitoxide/tree/main/gix-worktree-state/src/checkout is likely the interface we need.
https://crates.io/crates/gix-worktree-state/reverse_dependencies has no direct dependencies, so we cant look for usage examples there.
https://crates.io/crates/gix/reverse_dependencies has 42 cases. There might be some sample code in those.