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

Fallback to git commands? #1463

Closed
crabdancing opened this issue Jul 22, 2024 · 3 comments
Closed

Fallback to git commands? #1463

crabdancing opened this issue Jul 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@crabdancing
Copy link

Summary 💡

A built-in wrapping function to fallback to git commands when gix has no implementation

Motivation 🔦

It should make it easier to use gix as something of a drop-in replacement for git -- perhaps even aliasing git to gix.

It would be possible to do externally as a separate command, but there would be more points of failure as it would have to parse the gix output to determine that it had no command -- or worse, it'd have to hardcode which commands gix has and do some amount of parsing itself.

@crabdancing crabdancing added the enhancement New feature or request label Jul 22, 2024
@Byron
Copy link
Member

Byron commented Jul 23, 2024

Thanks for sharing this idea!

However, gix is quite explicitly a development tool, whose anti-goal is to ever be a git stand-in, even without aspiration to ever be stable. Instead, ein is what should strive for providing a workflow for Git repositories.

Since gix just calls into gitoxide-core, it would be possible for anyone to leverage it to implement a git stand-in, in fact, using gix (the crate), it should be possible to one day accomplish this feat. For now, there isn't enough functionality to do that effectively though.

@Byron Byron closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
@crabdancing
Copy link
Author

Fair enough. I notice a lot of git is single-threaded, and it quite painful (e.g. merging large repos like nixpkgs). :P

Someday I hope to replace git merge with something more concurrent on my setup.

@Byron
Copy link
Member

Byron commented Jul 23, 2024

Having not implemented merging yet, I am not quite sure how multi-threaded it can be. In theory, each sub-tree can be merged on a core and maybe that should be the concurrency model to really make a difference. However, I guess the first version will also be single-threaded, but thanks to Rust multi-threading is something that can reasonably happen as a follow-up.

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

No branches or pull requests

2 participants