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

Replace git2 with gix #713

Open
Canop opened this issue May 24, 2023 · 3 comments
Open

Replace git2 with gix #713

Canop opened this issue May 24, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Canop
Copy link
Owner

Canop commented May 24, 2023

git2 is a problem mainly due to its usage of glibc and induced compilation problems.

So the goal would be to try replacing git2 with gix and check performances are OK.

@Canop Canop added the enhancement New feature or request label May 24, 2023
@Canop
Copy link
Owner Author

Canop commented May 24, 2023

git2 usages in broot:

  1. Find the location of the global .gitignore file. This should be possible with the Repository.path_by_key function of gix

  2. Get a summary (added lines/removed lines) of the changes in the worktree: solution with gix to be determined

  3. Get the git status of a path (i.e. the equivalent of git2's Status). This isn't currently possible in gix, blocked by gix-worktree and gix-index (checkout, status, commit) Byron/gitoxide#301

@Canop
Copy link
Owner Author

Canop commented May 24, 2023

Note: if somebody has a 100% Rust reliable solution to get path status without gix, please suggest.

@Canop Canop pinned this issue Apr 27, 2024
@Canop
Copy link
Owner Author

Canop commented May 10, 2024

Progress: https://github.com/Canop/stagix

I'm only missing the numbers of lines added/removed

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

1 participant