{"thread":{"id":"44421","subject":"`git stash apply` deleted a random dir from my working copy","startedAt":"2016-11-03T16:06:31Z","lastAt":"2016-11-03T17:05:16Z","messageCount":3,"participants":["Stefan Monov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"305360","messageId":"CAJtFkWsUL=9K=VGTDejE+4RR3HJevk+2aRAhUyf8-mDrqi5MRg@mail.gmail.com","threadId":"44421","inReplyTo":null,"subject":"`git stash apply` deleted a random dir from my working copy","fromName":"Stefan Monov","fromEmail":"logixoul@gmail.com","sentAt":"2016-11-03T16:06:04Z","receivedAt":"2016-11-03T16:06:31Z","isPatch":false,"sender":{"key":"logixoul@gmail.com","avatar":"https://gravatar.com/avatar/225c01274d1ead9f204fb7d8b871a9aad653bd3d80dd4356efc8c83fdbc750e4?d=mp&s=160"},"body":"Hi.\n\nI just tried `git stash save` for the first time. It worked fine. Then\nI tried `git stash apply` and while my uncommitted changes were\nrestored, another effect was that a random dir from the root of my\nworking copy was deleted. I don't know why it chose that exact dir,\nthere's lots of other dirs like it in the root.\n\n`git stash save` output and shortened `git stash apply` output are attached.\n\nNote: The dir that got deleted was a committed and pushed dir. It had\nno uncommitted local changes.\n\nIt's not a huge problem, because there was no data loss - I can pull\nthe deleted data back from the repo. But I'd still like to know why\nthis problem happened.\n\nTIA, Stefan Monov\n\n\nSaved working directory and index state WIP on clipping: cfeac4b - applying the solution from http://stackoverflow.com/questions/40385482/why-cant-i-use-opengl-es-3-0-in-qt\nHEAD is now at cfeac4b - applying the solution from http://stackoverflow.com/questions/40385482/why-cant-i-use-opengl-es-3-0-in-qt\n\nRemoving debug_stencil_not_working/textureandlight.js\nRemoving debug_stencil_not_working/qtlogo.png\n[... more removes here ...]\nOn branch clipping\nChanges to be committed:\n  (use \"git reset HEAD <file>...\" to unstage)\n\n\t\tnew file:   documentation/textureSize_missing.txt\n\nChanges not staged for commit:\n  (use \"git add/rm <file>...\" to update what will be committed)\n  (use \"git checkout -- <file>...\" to discard changes in working directory)\n\n\t\tdeleted:    ../debug_stencil_not_working/qtlogo.png\n\t\tdeleted:    ../debug_stencil_not_working/textureandlight.js\n\t\t[... more deleted files here ...]\n\t\tmodified:   main.cpp\n\t\tmodified:   main.qml\n\t\t[... more modified files here ...]\n\nUntracked files:\n  (use \"git add <file>...\" to include in what will be committed)\n\n\t\t../dbg_repeater/dbg_repeater.pro.user\n\t\tdebug_stencil_not_working/\n\t\t[... more files and dirs here ...]"},{"id":"305365","messageId":"CAJtFkWu1qf3xFg1-B-xVONOmqQZfJhe4+qAb4E3H2A5-st_2dw@mail.gmail.com","threadId":"44421","inReplyTo":"CAJtFkWsUL=9K=VGTDejE+4RR3HJevk+2aRAhUyf8-mDrqi5MRg@mail.gmail.com","subject":"Re: `git stash apply` deleted a random dir from my working copy","fromName":"Stefan Monov","fromEmail":"logixoul@gmail.com","sentAt":"2016-11-03T17:01:17Z","receivedAt":"2016-11-03T17:01:43Z","isPatch":false,"sender":{"key":"logixoul@gmail.com","avatar":"https://gravatar.com/avatar/225c01274d1ead9f204fb7d8b871a9aad653bd3d80dd4356efc8c83fdbc750e4?d=mp&s=160"},"body":"Actually, I just tried restoring my dir with `git pull origin\nclipping`, but that didn't restore it. So, besides the question \"why\ndid it get deleted\", I'd like to ask \"how do I restore it?\", as well.\n\nOn Thu, Nov 3, 2016 at 6:06 PM, Stefan Monov <logixoul@gmail.com> wrote:\n> Hi.\n>\n> I just tried `git stash save` for the first time. It worked fine. Then\n> I tried `git stash apply` and while my uncommitted changes were\n> restored, another effect was that a random dir from the root of my\n> working copy was deleted. I don't know why it chose that exact dir,\n> there's lots of other dirs like it in the root.\n>\n> `git stash save` output and shortened `git stash apply` output are attached.\n>\n> Note: The dir that got deleted was a committed and pushed dir. It had\n> no uncommitted local changes.\n>\n> It's not a huge problem, because there was no data loss - I can pull\n> the deleted data back from the repo. But I'd still like to know why\n> this problem happened.\n>\n> TIA, Stefan Monov\n"},{"id":"305366","messageId":"CAJtFkWt8VEGHAigx7Wd49mj6erdM=y_jFbhQ+xaMaAsk91EmWg@mail.gmail.com","threadId":"44421","inReplyTo":"CAJtFkWu1qf3xFg1-B-xVONOmqQZfJhe4+qAb4E3H2A5-st_2dw@mail.gmail.com","subject":"Re: `git stash apply` deleted a random dir from my working copy","fromName":"Stefan Monov","fromEmail":"logixoul@gmail.com","sentAt":"2016-11-03T17:04:50Z","receivedAt":"2016-11-03T17:05:16Z","isPatch":false,"sender":{"key":"logixoul@gmail.com","avatar":"https://gravatar.com/avatar/225c01274d1ead9f204fb7d8b871a9aad653bd3d80dd4356efc8c83fdbc750e4?d=mp&s=160"},"body":"Scratch my last message, I figured out how to restore it. In the\nTortoiseGit context menu I selected \"Diff\", and in the list the\ndeleted files were listed as \"missing\". I selected them all, right\nclicked them, and selected \"revert\". Still don't know why the dir got\ndeleted in the first place though.\n\nOn Thu, Nov 3, 2016 at 7:01 PM, Stefan Monov <logixoul@gmail.com> wrote:\n> Actually, I just tried restoring my dir with `git pull origin\n> clipping`, but that didn't restore it. So, besides the question \"why\n> did it get deleted\", I'd like to ask \"how do I restore it?\", as well.\n>\n> On Thu, Nov 3, 2016 at 6:06 PM, Stefan Monov <logixoul@gmail.com> wrote:\n>> Hi.\n>>\n>> I just tried `git stash save` for the first time. It worked fine. Then\n>> I tried `git stash apply` and while my uncommitted changes were\n>> restored, another effect was that a random dir from the root of my\n>> working copy was deleted. I don't know why it chose that exact dir,\n>> there's lots of other dirs like it in the root.\n>>\n>> `git stash save` output and shortened `git stash apply` output are attached.\n>>\n>> Note: The dir that got deleted was a committed and pushed dir. It had\n>> no uncommitted local changes.\n>>\n>> It's not a huge problem, because there was no data loss - I can pull\n>> the deleted data back from the repo. But I'd still like to know why\n>> this problem happened.\n>>\n>> TIA, Stefan Monov\n"}]}