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
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;\
>
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
3 matches
Mail list logo