romkatv / gitstatus

Git status for Bash and Zsh prompt
GNU General Public License v3.0
1.65k stars 101 forks source link

Return repo information if the index is unreadable #419

Open puqeko opened 5 months ago

puqeko commented 5 months ago

Less of a serious PR and more of a question, if the index is unreadable (ie core.splitIndex is enabled) then why does gitstatus report no repo? It means that a command prompt won't show any information where it would have otherwise if the 'ignore index computations' option was given. Wouldn't it be a better user experience if we fall back to that instead?

Changes

Tested on darwin-x86 only.

Thank you for this work. An inspirational read.