-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
support thehelix
editor
#637
Comments
|
Another thing that comes to mind: I want to cache repositories in some manner which requires some sort of file -> repo lookup.
However gitoxide can detect these cases. Do you think the discovery logic can be spun out into a seperate function that helix could use. I hope/think the overhead is not that large helix also frequently scans for the |
It's already possible to get an up-to-date copy of the index with Doing two diffs seems like something that could be attainable given diffs are already much faster than pretty much anywhere else. Can't diffs be done in parallel as well so the only added serial overhead is to correctly draw the index diff in a different color? |
Thinking about it more I think showing hunks are staged doesn't actually work well. I think the stage is not guaranteed to be "in-between" head and worktree. So we could have three totally distinct files in HEAD, the index and the worktree. At which point you can either display two seperate diffs or need to choose one of them but displaying both doesn't make sense |
The
Doing it 'properly' is slow enough to have forced me to implement a less correct but faster version in one of the
I'd use a hashmap too, as any IO should outweigh the cost for the few queries it probably sees. Only one suggestion, in case it's not done yet: |
Required features
--depth=1
(grammars are fetched that way), currentlygit
is shelled outHEAD
filetime
usage ingix-index
withgix::fs::FileTime
, a clone of what this crate offers which should be reproducible without too much effort.The text was updated successfully, but these errors were encountered: