{"thread":{"id":"51185","subject":"`git stash show` \"forgets\" about untracked files","startedAt":"2019-05-28T08:52:41Z","lastAt":"2019-05-28T08:52:41Z","messageCount":1,"participants":["Σταύρος Ντέντος"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"376278","messageId":"CAHMHMxWzchXG_Ct3=n9OP=3Q-ENjt7BkGQ2iWDAE3eYhv4MpyQ@mail.gmail.com","threadId":"51185","inReplyTo":null,"subject":"`git stash show` \"forgets\" about untracked files","fromName":"Σταύρος Ντέντος","fromEmail":"stdedos@gmail.com","sentAt":"2019-05-28T08:52:02Z","receivedAt":"2019-05-28T08:52:41Z","isPatch":false,"sender":{"key":"stdedos@gmail.com","avatar":null},"body":"Hello there,\n\nI have saved some new untraced files, along with some tracked files in\na stash, in order to start making small commits.\nHowever, it seems that doing `git stash show`, will leave no trace\nabout untracked files being bundled inside.\n\nFor example:\n\n#                                 tracked -- untracked\nuser@host:repo/folder$ git stash push -u file.ctrl file1.ctrl\nfile2.ctrl file3.ctrl file4.ctrl -m 'New feature with untrackeds'\nSaved working directory and index state WIP on feature/auth_saml:\n03cd4d56538 fixup! drop! squash! NGFW-16257 QA: Configure Identity\nProvider with Ansible with asd2\nfatal: pathspec 'folder/-m' did not match any files  #[1]\nerror: unrecognized input\nuser@host:repo/folder$ git stash show\n file.ctrl | 4 ++++\n 1 file changed, 4 insertions(+)\nuser@host:repo/folder$ git stash pop\nfile1.ctrl already exists, no checkout\nfile2.ctrl already exists, no checkout\nfile3.ctrl already exists, no checkout\nfile4.ctrl already exists, no checkout\nCould not restore untracked files from stash entry\n$  git --version\ngit version 2.21.0\n\n---------------------------------------\n\nI understand that I could probably have staged them, and then commit maybe?\nI didn't want that at the time though\n\n---------------------------------------\n\n[1]: This also seems to be a bug.\nI understand I wrote it wrong, but, since I haven't used `--`, I am\nnot sure if `git` has the right to assume that `-m` is a filename.\nHowever, the command has finished correctly.\n\nΝτέντος Σταύρος\n"}]}