Git stash: create stash even if he end up with an Error (lock file)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good day,

I'm not sure if it a real bug or just a functionality fix but this is my issue.

What I wanted to do : 
Stash non committed change, but forgot to close a file that had uncommitted change and was write lock.

What I did : 
Git stash

What happen
Git 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.

What I expected to see :
Git stash fail and revert to the work directory before the command.

How the last two are different: 
End user get error, close the application and restart 
Vs
End 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.

Thank you

Thomas-Louis Laforest, ing. jr, Jr. Eng.
Chargé de projet, Project Leader
solutions intégrées  |  integrated solutions

T 819 542-5600  x3106
F 819 845-5600
tllaforest@xxxxxxxxxx
The 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.
Les 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.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]