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

Better way of diffing changes in unstaged, staged, and head #5

Open
trulsma opened this issue Oct 10, 2023 · 2 comments
Open

Better way of diffing changes in unstaged, staged, and head #5

trulsma opened this issue Oct 10, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@trulsma
Copy link
Owner

trulsma commented Oct 10, 2023

Currently all the files/(objects in a commit) are eagerly fetched before diffing. That means it is really slow on big repositories.

Should look more closely into how git does it and so it similarly.

The current code for doing this is located in: https://github.com/trulsma/intelligit/blob/main/src/git/mod.rs

@trulsma trulsma added the enhancement New feature or request label Oct 10, 2023
@trulsma
Copy link
Owner Author

trulsma commented Nov 1, 2023

Work has been done in gitoxide to do 'git status'. Have not looked in detail but this is probably a good place to look

@trulsma
Copy link
Owner Author

trulsma commented Nov 1, 2023

gitoxide has not implemented head -> index and untracked files yet. Once this is added we can use that. There is some bugs in our status implementation so this would improve the status command a lot! Check this PR for status

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