Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can paru be oxidized with gitoxide? #1271

Open
txtsd opened this issue Nov 3, 2024 · 1 comment
Open

Can paru be oxidized with gitoxide? #1271

txtsd opened this issue Nov 3, 2024 · 1 comment

Comments

@txtsd
Copy link

txtsd commented Nov 3, 2024

For the git clone parts, instead of running a git binary do it internally with gitoxide.

@Morganamilo
Copy link
Owner

Morganamilo commented Nov 15, 2024

When I started writing paru I tried using libgit2 over the git command line. This ended up being more effort than it's worth as paru needs to behave just like normal git respecting .gitconfig and sshconfig while also giving users the typical output they expect for clone and fetch and all that.

While I'm not against the idea in theory. I don't see using a git library ever being as simple and feature-full as just doing the handful of calls to git that we do now.

I'm happy to be proved wrong with a demo or something but I just don't see it happening. Most of our git calls are contained in the library https://github.com/Morganamilo/aur-fetch.rs. So if you did want to play around with it I'd start there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants