dahlbyk / posh-git

A PowerShell environment for Git
http://dahlbyk.github.io/posh-git/
MIT License
7.62k stars 802 forks source link

Suggest: fallback to Get-GitStatus when Get-GitStatusFromCache failed. #921

Open hcoona opened 2 years ago

hcoona commented 2 years ago

I'd suggest automatically fallback to lower performance but stable Get-GitStatus when Get-GitStatusFromCache failed, instead of totally not working and shows an "CACHE ERROR" here.

I suggest so because git-status-cache project currently not working well with git sparse checkout feature (https://github.com/cmarcusreid/git-status-cache/issues/27) & lfs feature (https://github.com/cmarcusreid/git-status-cache/issues/18). And both of them are blocked by libgit2 upstream, which could be a tough work to support them.