diff options
author | Jeff King <peff@peff.net> | 2012-05-07 17:09:04 -0400 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-05-08 04:51:08 -0400 |
commit | d4a6bf1fb64d904e210fbf7c5b330b06438a5bd5 (patch) | |
tree | e730861e04c858757025a81f93df92d3f10e8729 /t/t7508-status.sh | |
parent | a5985237878481af5fbca349d0d1ad7d6b2d2bcb (diff) | |
download | git-d4a6bf1fb64d904e210fbf7c5b330b06438a5bd5.tar.gz |
status: respect "-b" for porcelain format
There is no reason not to, as the user has to explicitly ask
for it, so we are not breaking compatibility by doing so. We
can do this simply by moving the "show_branch" flag into
the wt_status struct. As a bonus, this saves us from passing
it explicitly, simplifying the code.
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 't/t7508-status.sh')
-rwxr-xr-x | t/t7508-status.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh index 24728facf9..5d0e79fe2a 100755 --- a/t/t7508-status.sh +++ b/t/t7508-status.sh @@ -656,9 +656,14 @@ test_expect_success 'status --porcelain ignores color.status' ' git config --unset color.status git config --unset color.ui -test_expect_success 'status --porcelain ignores -b' ' +test_expect_success 'status --porcelain respects -b' ' git status --porcelain -b >output && + { + echo "## master" && + cat expect + } >tmp && + mv tmp expect && test_cmp expect output ' |