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

fish_git_prompt performance #7705

Closed
rapiz1 opened this issue Feb 10, 2021 · 1 comment
Closed

fish_git_prompt performance #7705

rapiz1 opened this issue Feb 10, 2021 · 1 comment

Comments

@rapiz1
Copy link

rapiz1 commented Feb 10, 2021

I found it sometimes slow to display the prompt in a super large git repo, which is in my case, the Linux kernel. Then I simply turned off the fish_git_prompt. It became quick again. I wonder is there any plan to improve fish_git_prompt performance? I don't know what I can do, but I'm glad to help.

@faho
Copy link
Member

faho commented Feb 10, 2021

This is basically always down to doing something that forces git to check all the files - it's just down to git being slow in that case, there aren't really any better git calls we can use. The worst offender is the informative status, so unset $__fish_git_prompt_show_informative_status or run

git config --local bash.showInformativeStatus false

in the offending repositories. (yes, that's a "bash.", we reuse this variable)

Closing as a duplicate of #6764.

@faho faho closed this as completed Feb 10, 2021
@faho faho added the duplicate label Feb 10, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants