gs lacks parsing of all short-hand permutations
Closed this issue · 4 comments
Issue description
Currently gs
only covers a handful (of the more common) status permutation that can occur between the working tree and the index. Specifically, ??
, M
, M
, MM
, D
, D
, DD
, R
, A
, and A
.
For all other short-hand permutations, an error is printed to the screen— TODO: UNKNOWN. FIX LATER...
Furthermore, many of the parsed statuses will not appear in all relevant states (to be committed, and not staged), but only in one.
Steps to reproduce the issue
-
Bring a file in your current branch to a permutation that is not supported.
For example, agit status --porcelain
output ofAD added to index, deleted in tree.txt.txt
and then -
run
gs
What's the expected result?
➤ Changes to be committed:
# new file: [1] added to index, deleted in tree.txt
➤ Changes not staged for commit:
# deleted: [2] added to index, deleted in tree.txt
What's the actual result?
➤ Changes to be committed:
AD "added to index, deleted in tree.txt"
TODO: UNKNOWN. FIX LATER...
Additional details / screenshot
Here's an example of an output the shows quite a few of these issues
Would love to contribute, but I'm getting 403 when trying to push. Is the error on my end or is is the repo currently on read-only mode?
If you fork it and submit a pull request I can merge it in.
or is is the repo currently on read-only mode?
No it isn't
thank you for your contributed