git-status: make porcelain more robust
commitb9e2bc560a1ea29ff833981d5bc70323c265bdb7
authorMichael J Gruber <git@drmicha.warpmail.net>
Tue, 14 Mar 2017 16:02:02 +0000 (14 17:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Mar 2017 20:15:18 +0000 (14 13:15 -0700)
treeb5860758f7bb31a6de5bedf431b035bdeb04173a
parentc3808ca6982b0ad7ee9b87eca9b50b9a24ec08b0
git-status: make porcelain more robust

git status provides a porcelain mode for porcelain writers with a
supposedly stable (plumbing) interface.
7a76c28ff2 ("status: disable translation when --porcelain is used", 2014-03-20)
made sure that ahead/behind info is not translated (i.e. is stable).

Make sure that the remaining two strings (initial commit, detached head)
are stable, too.

These changes are for the v1 porcelain interface. While we do have a perfectly
stable v2 porcelain interface now, some tools (such as
powerline-gitstatus) are written against v1 and profit from fixing v1
without any changes on their side.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c