Add --porcelain=v2 status parser
commitf779b90fbd65c2a656b77d23d369d15dffbf2b92
authorMaksim Odnoletkov <odnoletkov@mail.ru>
Wed, 11 Sep 2019 23:19:27 +0000 (12 00:19 +0100)
committerTim Pope <code@tpope.net>
Fri, 4 Oct 2019 18:47:09 +0000 (4 14:47 -0400)
tree226f6dc24da4e2cd2a2e4e8332c7da3817058db6
parent80aa8a9aea72f2054fb2ad8582461f60b0db9757
Add --porcelain=v2 status parser

New submodule modifiers:

- 'M' if submodule commit is changed, otherwise
- '?' if there is modified or untracked content

Keep using v1 parser for git versions older than 2.11. This will display
'M' for any submodule changes.

Test with https://github.com/odnoletkov/git-status-test-suite

Fixes https://github.com/tpope/vim-fugitive/issues/1204
autoload/fugitive.vim