git checkout resets modified files

2015-08-29 Thread Steve Heyns
git checkout resets modified files Version git 2.5.0, Description: I was automating a process that would pull and switch to another branch when I stumbled across this. I have not been able to emulate this from command line but using go (or I imagine other languages are similar) if you execute

Re: git checkout resets modified files

2015-08-29 Thread Junio C Hamano
Steve Heyns notzi...@gmail.com writes: git checkout resets modified files Version git 2.5.0, Description: I was automating a process that would pull and switch to another branch when I stumbled across this. I have not been able to emulate this from command line but using go (or I imagine

Re: git checkout resets modified files

2015-08-29 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: I do not think this behaviour depends on the vintage of Git. An empty string as pathspec has always matched everything in here AFAIR. Having said all that, I think the DWIM used by git checkout has some room for improvement, namely, its we didn't see