Open requested to merge github/fork/laurentbardin/feature/399-git-branch-no-status into master
Created by: laurentbardin
This is a first draft fix for #399 (closed). It has a few drawbacks and could be enhanced if needed:
- if we wanted to implement the mechanism for every supported VCS, it would add one variable each time;
- we could use one variable for every VCS, something like
LP_ENABLE_VCS_BRANCH_ONLY, but then we lose fine-grained control over it.
I don't think that second point really matters, as the problem mentioned in the issue (slow I/O and big repo) is bound to happen with every VCS at some point.
As for the patch itself, I'm really not fluent with bash so feel free to point any mistake. It looks messy, but it's mostly changes in indentation.