{"thread":{"id":"36347","subject":"Git stash: create stash even if he end up with an Error (lock file)","startedAt":"2014-04-04T15:11:40Z","lastAt":"2014-04-04T15:11:40Z","messageCount":1,"participants":["Thomas-Louis Laforest"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"238372","messageId":"4a6120a3c62d420c951aab89ba3730fb@CO1PR02MB029.namprd02.prod.outlook.com","threadId":"36347","inReplyTo":null,"subject":"Git stash: create stash even if he end up with an Error (lock file)","fromName":"Thomas-Louis Laforest","fromEmail":"tllaforest@arbault.ca","sentAt":"2014-04-04T15:11:40Z","receivedAt":"2014-04-04T15:11:40Z","isPatch":false,"sender":{"key":"tllaforest@arbault.ca","avatar":null},"body":"Good day,\n\nI'm not sure if it a real bug or just a functionality fix but this is my issue.\n\nWhat I wanted to do : \nStash non committed change, but forgot to close a file that had uncommitted change and was write lock.\n\nWhat I did : \nGit stash\n\nWhat happen\nGit stash created the stash and try to remove the uncommitted change but fail on the lock file, leaving the work directory with a stash than can't be pop without manually resetting the lock file.\n\nWhat I expected to see :\nGit stash fail and revert to the work directory before the command.\n\nHow the last two are different: \nEnd user get error, close the application and restart \nVs\nEnd user get error, close the application, reset the work directory, fear he may have lost the change he was doing, pop the stash, revise everything is good, than restart doing whatever git task he was trying to do.\n\nThank you\n\nThomas-Louis Laforest, ing. jr, Jr. Eng.\nChargé de projet, Project Leader\nsolutions intégrées  |  integrated solutions\n\nT 819 542-5600  x3106\nF 819 845-5600\ntllaforest@arbault.ca\nThe information contained herein is of private and confidential nature. It can be used only by the above-mentioned recipients. Any other person who would take note of it is advised that it is strictly forbidden for him to reveal the information, to distribute it or to copy it. If this communication were transmitted to you by mistake, warn us immediately by telephone or email, and erase the original, without taking a copy, revealing the content nor taking some measures based on it.\nLes renseignements contenus dans les présentes sont de nature privée et confidentielle. Ils ne peuvent être utilisés que par le ou les destinataires susmentionnés. Toute autre personne qui en prendrait connaissance est priée de noter qu'il lui est strictement interdit de les divulguer, de les distribuer ou de les copier. Si cette communication vous a été transmise par mégarde, veuillez nous en aviser immédiatement par téléphone ou par courriel, et effacer l'original, sans en tirer de copie, en dévoiler le contenu ni prendre quelque mesure fondée sur celui-ci.\n"}]}