Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@benjiwolff
Copy link
Contributor

@benjiwolff benjiwolff commented Nov 9, 2025

I am currently working exclusively with a large codebase. The main issue is that git status on the entire repo takes around 2 seconds which makes staging and committing super tedious and frustrating.

Here's a hacky implementation that runs git status only on touched files during staging. There is also an autocommand that keeps the status buffer up-to date in the background.

There is a slight drawback for renamed files with the current implementation, so I added a configuration option.

end

self:dispatch_refresh({ update_diff = invalidated_diffs }, "v_discard")
self:dispatch_refresh({ update_diffs = invalidated_diffs }, "v_discard")
Copy link
Member

Choose a reason for hiding this comment

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

😅 I'm just going to push this fix to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants