]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7508-status.sh
status/commit: make sure --porcelain is not affected by user-facing config
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Jun 2013 18:41:40 +0000 (11:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Jun 2013 19:49:53 +0000 (12:49 -0700)
commit84b4202d804c7faec76f3eab22744b6288c63481
tree153bb40aa5ef37955e39a70cbb3365576843bc64
parentf0915cbaf476d63f72c284057680809ed24fbe0d
status/commit: make sure --porcelain is not affected by user-facing config

The recent addition of status.branch started affecting what is shown
when "git status --porcelain" is run by mistake.  Identify the
configuration items that should be ignored under "--porcelain"
option, introduce a "deferred config" mechanism to keep the values
read from the configuration, and decide what value to use only after
we read both from configuration and command line.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
t/t7508-status.sh
wt-status.c