Parses a Git change status string into staged and unstaged statuses.
The status string is expected to be at least two characters long, where:
The first character represents the staged status.
The second character represents the unstaged status.
If the status is '??', it indicates an untracked file.
If the status is one of the unmerged combinations (DD, AU, UD, UA, DU, AA, UU),
it indicates a file with merge conflicts and both statuses are Unmerged.
This should match the output of git status --porcelain.
Parameters
status: string
A two-character string representing the Git change status.
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.
If the status is one of the unmerged combinations (DD, AU, UD, UA, DU, AA, UU), it indicates a file with merge conflicts and both statuses are
Unmerged.This should match the output of
git status --porcelain.