commit - cfd6e648cc55733bfd27f5aba59576bd2429e4356c81a6d9ba8d965fa158ed6a
commit + b5def47a1d71214197414530581e6d254b9b730536376acfcacb6d19d4259111
blob - 62e96cdd44a4f3da491a3ac9c686ac7d9e3c85191e2c27a17ce78456f3d43650
blob + b2554388a92abd5a8e5120641b85082c875d3365aef38127f5ac089deb668e52
--- regress/cmdline/status.sh
+++ regress/cmdline/status.sh
test_done "$testroot" "$ret"
}
+test_status_gitignore_single_file() {
+ local testroot=`test_init status_gitignore_single_file`
+
+ got checkout $testroot/repo $testroot/wt > /dev/null
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ test_done "$testroot" "$ret"
+ return 1
+ fi
+
+ echo "foo" > $testroot/wt/epsilon/.gitignore
+ echo "unversioned file" > $testroot/wt/epsilon/foo
+
+ (cd $testroot/wt && got status epsilon/foo > $testroot/stdout)
+
+ echo -n '' > $testroot/stdout.expected
+ cmp -s $testroot/stdout.expected $testroot/stdout
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ diff -u $testroot/stdout.expected $testroot/stdout
+ fi
+
+ test_done "$testroot" "$ret"
+}
+
test_status_status_code() {
local testroot=`test_init status_status_code`
run_test test_status_gitignore_trailing_slashes
run_test test_status_gitignore_comments
run_test test_status_multiple_gitignore_files
+run_test test_status_gitignore_single_file
run_test test_status_status_code
run_test test_status_suppress
run_test test_status_empty_file