{"thread":{"id":"65593","subject":"[PATCH] stash: test show --include-untracked includes untracked files","startedAt":"2026-05-05T10:33:54Z","lastAt":"2026-05-16T18:34:36Z","messageCount":2,"participants":["Pushkar Singh"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"542758","messageId":"20260505103332.43702-2-pushkarkumarsingh1970@gmail.com","threadId":"65593","inReplyTo":null,"subject":"[PATCH] stash: test show --include-untracked includes untracked files","fromName":"Pushkar Singh","fromEmail":"pushkarkumarsingh1970@gmail.com","sentAt":"2026-05-05T10:33:33Z","receivedAt":"2026-05-05T10:33:54Z","isPatch":true,"body":"Add a test to verify that 'git stash show --include-untracked'\nincludes untracked files that were saved in the stash.\n\nThis ensures coverage for the third parent of stash commits,\nwhich represents untracked files.\n\nSigned-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com>\n---\n t/t3903-stash.sh | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)\n\ndiff --git a/t/t3903-stash.sh b/t/t3903-stash.sh\nindex 70879941c2..d4867536b9 100755\n--- a/t/t3903-stash.sh\n+++ b/t/t3903-stash.sh\n@@ -1790,4 +1790,21 @@ test_expect_success 'stash.index=false overridden by --index' '\n \ttest_cmp expect file\n '\n \n+test_expect_success 'stash show --include-untracked includes untracked files' '\n+\tgit reset --hard &&\n+\n+\techo tracked >tracked &&\n+\tgit add tracked &&\n+\tgit commit -m \"base\" &&\n+\n+\techo change >>tracked &&\n+\techo untracked >untracked &&\n+\n+\tgit stash push --include-untracked &&\n+\ttest_path_is_missing untracked &&\n+\n+\tgit stash show --include-untracked >actual &&\n+\ttest_grep \"untracked\" actual\n+'\n+\n test_done\n-- \n2.53.0.582.gca1db8a0f7\n\n"},{"id":"543471","messageId":"20260516183347.4323-2-pushkarkumarsingh1970@gmail.com","threadId":"65593","inReplyTo":"20260505103332.43702-2-pushkarkumarsingh1970@gmail.com","subject":"[PATCH v2] stash: add coverage for show --include-untracked","fromName":"Pushkar Singh","fromEmail":"pushkarkumarsingh1970@gmail.com","sentAt":"2026-05-16T18:33:48Z","receivedAt":"2026-05-16T18:34:36Z","isPatch":true,"body":"Add a test for 'git stash show --include-untracked' to\ncover the case where untracked files saved in the stash\nare included in the output.\n\nWhile stash creation and restoration of untracked files\nare already tested, there is currently no explicit test\ncovering the output behavior of 'stash show\n--include-untracked'.\n\nSigned-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com>\n---\nChanges in v2:\n  - Clarify in the commit message that the patch fills a gap\n    in existing test coverage for 'stash show\n    --include-untracked'\n\n t/t3903-stash.sh | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)\n\ndiff --git a/t/t3903-stash.sh b/t/t3903-stash.sh\nindex 70879941c2..d4867536b9 100755\n--- a/t/t3903-stash.sh\n+++ b/t/t3903-stash.sh\n@@ -1790,4 +1790,21 @@ test_expect_success 'stash.index=false overridden by --index' '\n \ttest_cmp expect file\n '\n \n+test_expect_success 'stash show --include-untracked includes untracked files' '\n+\tgit reset --hard &&\n+\n+\techo tracked >tracked &&\n+\tgit add tracked &&\n+\tgit commit -m \"base\" &&\n+\n+\techo change >>tracked &&\n+\techo untracked >untracked &&\n+\n+\tgit stash push --include-untracked &&\n+\ttest_path_is_missing untracked &&\n+\n+\tgit stash show --include-untracked >actual &&\n+\ttest_grep \"untracked\" actual\n+'\n+\n test_done\n-- \n2.53.0.582.gca1db8a0f7\n\n"}]}