You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there isn't an easy way of performing a checkout outside of gix::clone's PrepareCheckout which is not usable outside of this module.
I could use gix-worktree to do the same thing that PrepareCheckout does, but that is quite cumbersome.
I could also use a remote connection to download the needed files, but then it's complicated to persist this to disk.
Since the bulk of the work of fetching and checking out is already done in gix::clone I think it wouldn't be so complicated to move these two functionalities outside, to be usable directly as a function of Repository.
I'm writing a program that will need to checkout between multiple tags of a repository back and forth. The checked out files are then copied outside the repository for further use. While I could do this with git or libgit2, I would prefeer not to have non-Rust dependencies, which is why I tried doing it with gitoxide.
The text was updated successfully, but these errors were encountered:
Checkouts are such an important part of git, there is no way it would be forgotten or would not be easier to use when it is done. I recommend subscribing to this tracking issue to know when checkout is closing in on completion.
The checkout available now is only suitable for a special case and it's not correct enough to be more than a PoC, with todo!() still sprinkled in.
As this issues doesn't add anything over the respective tracking issue, I will close this one. Please feel free to comment there if anything comes up. Thanks for your understanding.
Summary 💡
Currently there isn't an easy way of performing a checkout outside of
gix::clone
'sPrepareCheckout
which is not usable outside of this module.I could use
gix-worktree
to do the same thing thatPrepareCheckout
does, but that is quite cumbersome.I could also use a remote connection to download the needed files, but then it's complicated to persist this to disk.
Since the bulk of the work of fetching and checking out is already done in
gix::clone
I think it wouldn't be so complicated to move these two functionalities outside, to be usable directly as a function ofRepository
.Similar to #726 but for checkout.
Motivation 🔦
I'm writing a program that will need to checkout between multiple tags of a repository back and forth. The checked out files are then copied outside the repository for further use. While I could do this with
git
orlibgit2
, I would prefeer not to have non-Rust dependencies, which is why I tried doing it with gitoxide.The text was updated successfully, but these errors were encountered: