Parses a Git change status string into staged and unstaged statuses.
The status string is expected to be at least two characters long, where:
If the status is '??', it indicates an untracked file.
This should match the output of git status --porcelain.
git status --porcelain
A two-character string representing the Git change status.
An object containing the staged and unstaged statuses.
Parses a Git change status string into staged and unstaged statuses.
The status string is expected to be at least two characters long, where:
If the status is '??', it indicates an untracked file.
This should match the output of
git status --porcelain.