From: Tao Klerks Date: Thu, 31 Mar 2022 16:02:14 +0000 (+0000) Subject: untracked-cache: test untracked-cache-bypassing behavior with -uall X-Git-Tag: v2.37.0-rc0~102^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0231869a6d656f1cc9402084898666308d364ef;p=thirdparty%2Fgit.git untracked-cache: test untracked-cache-bypassing behavior with -uall Untracked cache was originally designed to only work with '--untracked-files=normal', and it gets ignored when '--untracked-files=all' is specified instead. Add explicit tests for this known as-designed behavior. Signed-off-by: Tao Klerks Signed-off-by: Junio C Hamano --- diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh index ca90ee805e..b89be8dc6d 100755 --- a/t/t7063-status-untracked-cache.sh +++ b/t/t7063-status-untracked-cache.sh @@ -190,6 +190,38 @@ test_expect_success 'untracked cache after second status' ' test_cmp ../dump.expect ../actual ' +cat >../status_uall.expect <../trace.output && + GIT_TRACE2_PERF="$TRASH_DIRECTORY/trace.output" \ + git status -uall --porcelain >../actual && + iuc status -uall --porcelain >../status.iuc && + test_cmp ../status_uall.expect ../status.iuc && + test_cmp ../status_uall.expect ../actual && + get_relevant_traces ../trace.output ../trace.relevant && + cat >../trace.expect <../actual && + test_cmp ../dump.expect ../actual +' + test_expect_success 'modify in root directory, one dir invalidation' ' : >four && test-tool chmtime =-240 four &&