stash show: use stash.showIncludeUntracked even when diff options given
authorDenton Liu <liu.denton@gmail.com>
Fri, 21 May 2021 10:37:47 +0000 (03:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 22 May 2021 08:56:46 +0000 (17:56 +0900)
commitaf5cd44b6f8f1934bc8b91f646eb2e73dcab57f3
tree9aeafe86f27bdd089aa9cb078b507755de370a0d
parent1ff595d218d9175eee1db753844044c2746d0515
stash show: use stash.showIncludeUntracked even when diff options given

If options pertaining to how the diff is displayed is provided to
`git stash show`, the command will ignore the stash.showIncludeUntracked
configuration variable, defaulting to not showing any untracked files.
This is unintuitive behaviour since the format of the diff output and
whether or not to display untracked files are orthogonal.

Use stash.showIncludeUntracked even when diff options are given. Of
course, this is still overridable via the command-line options.

Update the documentation to explicitly say which configuration variables
will be overridden when a diff options are given.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/stash.txt
Documentation/git-stash.txt
builtin/stash.c
t/t3905-stash-include-untracked.sh