Skip to content

Commit 55269ec

Browse files
benknoblegitster
authored andcommitted
doc: explain the impact of stash.index on --autostash options
With 9842c0c (stash: honor stash.index in apply, pop modes, 2025-09-21) merged in a5d4779 (Merge branch 'dk/stash-apply-index', 2025-09-29), we did not advertise the connection between the new config option stash.index and the implicit use of git-stash via --autostash (which may also be configured). Do so. Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9842c0c commit 55269ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/config/stash.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ stash.index::
22
If this is set to true, `git stash apply` and `git stash pop` will
33
behave as if `--index` was supplied. Defaults to false. See the
44
descriptions in linkgit:git-stash[1].
5+
+
6+
This also affects invocations of linkgit:git-stash[1] via `--autostash` from
7+
commands like linkgit:git-merge[1], linkgit:git-rebase[1], and
8+
linkgit:git-pull[1].
59

610
stash.showIncludeUntracked::
711
If this is set to true, the `git stash show` command will show

0 commit comments

Comments
 (0)