]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/stash.c
stash push: support the --pathspec-from-file option
authorAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Mon, 17 Feb 2020 17:25:22 +0000 (17:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Feb 2020 18:56:49 +0000 (10:56 -0800)
commit8a98758a8d9dbd807fc2f1576e9141c1b720c5c1
tree6e4aa130edc4c2e12256e923195856a93b315486
parent8c3713cede71e4741dac546f787734627329f55b
stash push: support the --pathspec-from-file option

Decisions taken for simplicity:
1) For now, `--pathspec-from-file` is declared incompatible with
   `--patch`, even when <file> is not `-`. Such use case is not
   really expected.
2) It is not allowed to pass pathspec in both args and file.

Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-stash.txt
builtin/stash.c
t/t3909-stash-pathspec-file.sh [new file with mode: 0755]