summaryrefslogtreecommitdiff
path: root/t/t3905-stash-include-untracked.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2021-03-03 11:16:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-05 22:31:27 (GMT)
commit0af760e26191acd3c5957841461ff224b80b43f7 (patch)
tree4ac568f916e8965219c52300d0d9f5048a2f3dbe /t/t3905-stash-include-untracked.sh
parentd3c7bf73bdb679dd98c6aff65edbce4df743ddd3 (diff)
downloadgit-0af760e26191acd3c5957841461ff224b80b43f7.zip
git-0af760e26191acd3c5957841461ff224b80b43f7.tar.gz
git-0af760e26191acd3c5957841461ff224b80b43f7.tar.bz2
stash show: learn stash.showIncludeUntracked
The previous commit teaches `git stash show --include-untracked`. It may be desirable for a user to be able to always enable the --include-untracked behavior. Teach the stash.showIncludeUntracked config option which allows users to do this in a similar manner to stash.showPatch. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3905-stash-include-untracked.sh')
-rwxr-xr-xt/t3905-stash-include-untracked.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t3905-stash-include-untracked.sh b/t/t3905-stash-include-untracked.sh
index 08ceef6..b470db7 100755
--- a/t/t3905-stash-include-untracked.sh
+++ b/t/t3905-stash-include-untracked.sh
@@ -319,6 +319,8 @@ test_expect_success 'stash show --include-untracked shows untracked files' '
test_cmp expect actual &&
git stash show --only-untracked --include-untracked >actual &&
test_cmp expect actual &&
+ git -c stash.showIncludeUntracked=true stash show >actual &&
+ test_cmp expect actual &&
cat >expect <<-EOF &&
diff --git a/tracked b/tracked