Re: [PATCH v8 4/6] stash: teach 'push' (and 'create_stash') to honor pathspec

2017-03-01 Thread Thomas Gummerer
On 02/28, Junio C Hamano wrote: > Thomas Gummerer writes: > > > + git reset ${GIT_QUIET:+-q} -- "$@" > > + git ls-files -z --modified -- "$@" | > > + git checkout-index -z --force --stdin > > + git checkout ${GIT_QUIET:+-q} H

Re: [PATCH v8 4/6] stash: teach 'push' (and 'create_stash') to honor pathspec

2017-03-01 Thread Junio C Hamano
Thomas Gummerer writes: > On 02/28, Junio C Hamano wrote: >> Thomas Gummerer writes: >> >> > + git reset ${GIT_QUIET:+-q} -- "$@" >> > + git ls-files -z --modified -- "$@" | >> > + git checkout-index -z --force --stdin >> > + g

Re: [PATCH v8 4/6] stash: teach 'push' (and 'create_stash') to honor pathspec

2017-02-28 Thread Junio C Hamano
Thomas Gummerer writes: > + git reset ${GIT_QUIET:+-q} -- "$@" > + git ls-files -z --modified -- "$@" | > + git checkout-index -z --force --stdin > + git checkout ${GIT_QUIET:+-q} HEAD -- $(git ls-files -z > --modifi

[PATCH v8 4/6] stash: teach 'push' (and 'create_stash') to honor pathspec

2017-02-28 Thread Thomas Gummerer
While working on a repository, it's often helpful to stash the changes of a single or multiple files, and leave others alone. Unfortunately git currently offers no such option. git stash -p can be used to work around this, but it's often impractical when there are a lot of changes over multiple f