We shouldn't parse output of git-statusSee original GitHub issue
globalvars.py, we parse the output of
git status and check for
HEAD detached, to determine whether we’re on a branch or not.
This is a bad practice because the output of
git status is meant to be human-readable, not to be parsed by programs. We should probably use a program-friendly interface to determine whether HEAD is detached from branch.
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
I think there’s some sort of option that can be passed to
git status that allows you to specify the output format.