Are there commands I can call programatically to determine whether my git repo is in the state of each of
- merge conflict
- rebase conflict
- conflict due to stash pop
In particular I want to know whether I can programmatically issue git merge --abort
(inthe case of 1) and git rebase --abort
(in the case of 2) to get back to a known good state.