* bc/unstash-clean-crufts:
git-stash: remove untracked/ignored directories when stashed
t/t3905: add missing '&&' linkage
git-stash.sh: fix typo in error message
t/t3905: use the name 'actual' for test output, swap arguments to test_cmp
@ -17,19 +17,21 @@ test_expect_success 'stash save --include-untracked some dirty working directory
@@ -17,19 +17,21 @@ test_expect_success 'stash save --include-untracked some dirty working directory
echo 3 > file &&
test_tick &&
echo 1 > file2 &&
mkdir untracked &&
echo untracked >untracked/untracked &&
git stash --include-untracked &&
git diff-files --quiet &&
git diff-index --cached --quiet HEAD
'
cat > expect <<EOF
?? actual
?? expect
?? output
EOF
test_expect_success 'stash save --include-untracked cleaned the untracked files' '
git status --porcelain > output
test_cmp output expect
git status --porcelain >actual &&
test_cmp expect actual
'
cat > expect.diff <<EOF
@ -40,17 +42,26 @@ index 0000000..d00491f
@@ -40,17 +42,26 @@ index 0000000..d00491f