[PATCH 4/7] submodule.c: port is_submodule_modified to use porcelain 2

2017-03-24 Thread Stefan Beller
Migrate 'is_submodule_modified' to the new porcelain format of git-status. This conversion attempts to convert faithfully, i.e. the behavior ought to be exactly the same. As the output in the parsing only distinguishes between untracked files and the rest, this is easy to port to the new format,

Re: [PATCH 4/7] submodule.c: port is_submodule_modified to use porcelain 2

2017-03-24 Thread Jonathan Nieder
Stefan Beller wrote: [...] > --- a/submodule.c > +++ b/submodule.c [...] > @@ -1070,11 +1070,12 @@ unsigned is_submodule_modified(const char *path, int > ignore_untracked) [...] > while (strbuf_getwholeline(, fp, '\n') != EOF) { > - if ((buf.buf[0] == '?') && (buf.buf[1] ==

[PATCH 4/7] submodule.c: port is_submodule_modified to use porcelain 2

2017-03-24 Thread Stefan Beller
Migrate 'is_submodule_modified' to the new porcelain format of git-status. This conversion attempts to convert faithfully, i.e. the behavior ought to be exactly the same. As the output in the parsing only distinguishes between untracked files and the rest, this is easy to port to the new format,