Skip to content

Conversation

@Byron
Copy link
Collaborator

@Byron Byron commented Sep 7, 2024

This PR offers an alternative implementation for git_clone_repository which is closer to the original vision on how the API should be used.

The main issue was the need to turn everything into a frontend Error which could only convert from anyhow::Error. This is for good reason,
but in this case it was in the way resolved with an UnmarkedError which can convert from any other error, while serializing such that the frontend can handle it.

Motivation

I used this the git2 version of the code along with the gitoxide version as an example in my upcoming GitMerge talk for how much simpler git2 can be, in the real world, but couldn't resist to try to turn it into the 'best possible version of itself'.

@vercel
Copy link

vercel bot commented Sep 7, 2024

@Byron is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

@Byron Byron requested a review from Caleb-T-Owens September 7, 2024 19:10
@github-actions github-actions bot added the rust Pull requests that update Rust code label Sep 7, 2024
Copy link
Contributor

@Caleb-T-Owens Caleb-T-Owens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Thanks for this. (Looking forwards to your talk BTW)

@Byron Byron merged commit ee083de into gitbutlerapp:master Sep 9, 2024
@Byron Byron deleted the nicer-clone branch September 9, 2024 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants