]> git.ipfire.org Git - thirdparty/git.git/commit
docs: fix "git stash [push]" documentation
authorQuentin Bernet <quentin.bernet@bluewin.ch>
Mon, 30 Mar 2026 13:24:35 +0000 (13:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2026 15:19:40 +0000 (08:19 -0700)
commit3402850ee16f5a7a05d68cb29271a0e558659aaa
tree020eb3828e8186daca7fb00bdc9878fafbb42069
parent5361983c075154725be47b65cca9a2421789e410
docs: fix "git stash [push]" documentation

Both the synopsis and explanation are incorrect and contradict each
other.
The synopsis claims "push" can only be omitted when you do not give any
options and arguments.
The explanation correctly claims that non-option arguments are not
allowed, except pathspec elements preceded by double hyphens.
But it also adds "-p" to the list of exceptions, even though it is an
option argument.

Signed-off-by: Quentin Bernet <quentin.bernet@bluewin.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-stash.adoc
builtin/stash.c