author | Brandon Casey <drafnel@gmail.com> | |
Thu, 26 May 2011 20:43:21 +0000 (13:43 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 29 May 2011 20:00:10 +0000 (13:00 -0700) | ||
commit | 000f97bd11e94fa8ede7fcdb43f5633997fed672 | |
tree | e38c37f3bb280af092b5c34072cb51f39dbc7061 | tree | snapshot |
parent | 95b9f9f927a7d9ea2bc2849b6ae624335e98362f | commit | diff |
builtin/commit.c: set status_format _after_ option parsing
'git status' should use --porcelain output format when -z is given.
It was not doing so since the _effect_ of using -z, namely that
null_termination would be set, was being checked _before_ option parsing
was performed.
So, move the check so that it is performed after option parsing.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
'git status' should use --porcelain output format when -z is given.
It was not doing so since the _effect_ of using -z, namely that
null_termination would be set, was being checked _before_ option parsing
was performed.
So, move the check so that it is performed after option parsing.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history | |
t/t7508-status.sh | diff | blob | history |