Re: apply --cached --whitespace=fix now failing on items added with "add -N"

2015-06-22 Thread Junio C Hamano
Duy Nguyen writes: > On Mon, Jun 22, 2015 at 9:29 PM, Patrick Higgins wrote: >> I like to use git to remove trailing whitespace from my files. I use >> the following ~/.gitconfig to make this convenient: >> >> [alias] >> wsadd = "!sh -c 'git diff -- \"$@\" | git apply --cached >> --white

Re: apply --cached --whitespace=fix now failing on items added with "add -N"

2015-06-22 Thread Duy Nguyen
On Mon, Jun 22, 2015 at 9:29 PM, Patrick Higgins wrote: > I like to use git to remove trailing whitespace from my files. I use > the following ~/.gitconfig to make this convenient: > > [alias] > wsadd = "!sh -c 'git diff -- \"$@\" | git apply --cached > --whitespace=fix;\ >

apply --cached --whitespace=fix now failing on items added with "add -N"

2015-06-22 Thread Patrick Higgins
I like to use git to remove trailing whitespace from my files. I use the following ~/.gitconfig to make this convenient: [alias] wsadd = "!sh -c 'git diff -- \"$@\" | git apply --cached --whitespace=fix;\ git checkout -- ${1-.} \"$@\"' -" The wsadd alias doesn't work with