Merge branch 'ps/t3903-cover-stash-include-untracked'

Test coverage has been added to "git stash --include-untracked".

* ps/t3903-cover-stash-include-untracked:
  stash: add coverage for show --include-untracked
main
Junio C Hamano 2026-05-27 14:15:44 +09:00
commit c5e6e497ac
1 changed files with 17 additions and 0 deletions

View File

@ -1814,4 +1814,21 @@ test_expect_success 'apply with empty conflict labels' '
test_grep "^>>>>>>>$" conflict-file
'

test_expect_success 'stash show --include-untracked includes untracked files' '
git reset --hard &&

echo tracked >tracked &&
git add tracked &&
git commit -m "base" &&

echo change >>tracked &&
echo untracked >untracked &&

git stash push --include-untracked &&
test_path_is_missing untracked &&

git stash show --include-untracked >actual &&
test_grep "untracked" actual
'

test_done