{"thread":{"id":"57833","subject":"Support -- pathspec in git-stash show command","startedAt":"2022-05-02T16:03:07Z","lastAt":"2022-05-02T16:03:07Z","messageCount":1,"participants":["Erik Aigner"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"454723","messageId":"52447774-42E2-4578-8AB9-6F355E56CA80@bytieful.com","threadId":"57833","inReplyTo":null,"subject":"Support -- pathspec in git-stash show command","fromName":"Erik Aigner","fromEmail":"erik@bytieful.com","sentAt":"2022-05-02T16:01:51Z","receivedAt":"2022-05-02T16:03:07Z","isPatch":false,"sender":{"key":"erik@bytieful.com","avatar":null},"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\n1) Create a stash containing multiple files including `foo/bar.txt`\n2) perform `git stash show -p stash@{0} -- foo/bar.txt\n\nWhat did you expect to happen? (Expected behavior)\n\nThe stash patch output would be limited to only the provided pathspec `foo/bar.txt`\n\nWhat happened instead? (Actual behavior)\n\nError message \"Too many revisions specified: 'stash@{0}' 'test/foo.txt'\"\n\nWhat's different between what you expected and what actually happened?\n\nThe manpage for git-stash states that the SHOW command should support any argument the git-diff command also accepts,\nbut apparently the trailing \"-- <pathspec>\" does not work with \"git stash show\".\n\nAnything else you want to add:\n\nFor symmetry with git-diff, git-show should also support a pathspec parameter. The reason for this is that `git stash show`\nhas the stash specific `--include-untracked` paramenter, which git-diff doesn't have.\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.32.0 (Apple Git-132)\ncpu: arm64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T8101 arm64\ncompiler info: clang: 13.1.6 (clang-1316.0.21.2.3)\nlibc info: no libc information available\n$SHELL (typically, interactive shell): /bin/zsh\n\n\n[Enabled Hooks]\npre-commit\n"}]}