Re: git stash data loss

2012-08-21 Thread Jeff King
On Thu, Aug 16, 2012 at 08:30:48PM -0700, Junio C Hamano wrote: Jeff King p...@peff.net writes: On Fri, Jul 27, 2012 at 09:29:53AM -0400, Jeff King wrote: If we put actual files inside x, which git does track, then they would be part of the stash, and should be properly retained. But

Re: git stash data loss

2012-08-16 Thread Junio C Hamano
Jeff King p...@peff.net writes: On Fri, Jul 27, 2012 at 09:29:53AM -0400, Jeff King wrote: If we put actual files inside x, which git does track, then they would be part of the stash, and should be properly retained. But they're not: $ rm x mkdir x echo foo x/file Now we have some

Re: git stash data loss

2012-07-27 Thread Jeff King
On Fri, Jul 27, 2012 at 07:06:08AM +0400, Aleksandr Pryimak wrote: I also recreated it aleksandr@beast:/tmp/test$ git init Initialized empty Git repository in /tmp/test/.git/ aleksandr@beast:/tmp/test$ touch x aleksandr@beast:/tmp/test$ git add x aleksandr@beast:/tmp/test$ git commit -m

Re: git stash data loss

2012-07-27 Thread Jeff King
On Fri, Jul 27, 2012 at 09:29:53AM -0400, Jeff King wrote: If we put actual files inside x, which git does track, then they would be part of the stash, and should be properly retained. But they're not: $ rm x mkdir x echo foo x/file Now we have some precious contents in the form of

Re: git stash data loss

2012-07-27 Thread Aleksandr Priymak
Thanks Jeff for the comment. You are right. I oversimplified the use-case ( forget to fill the directory ) Sent from my iPad On Jul 27, 2012, at 5:29 PM, Jeff King p...@peff.net wrote: On Fri, Jul 27, 2012 at 07:06:08AM +0400, Aleksandr Pryimak wrote: I also recreated it