Re: [PATCH] stash: clean untracked files before reset

2017-08-11 Thread Junio C Hamano
Nicolas Morey-Chaisemartin writes: > If calling git stash -u on a repo that contains a file that is not > ignored any more due to a current modification of the gitignore file, > this file is stashed but not remove from the working tree. > This is due to git-stash first doing a reset --hard which

[PATCH] stash: clean untracked files before reset

2017-08-11 Thread Nicolas Morey-Chaisemartin
If calling git stash -u on a repo that contains a file that is not ignored any more due to a current modification of the gitignore file, this file is stashed but not remove from the working tree. This is due to git-stash first doing a reset --hard which clears the .gitignore file modification and t