Justin T Conroy
Justin T Conroy

Reputation: 327

How do you ignore whitespace when using git whatchanged -p?

I can use

git whatchanged -p

to show a log of all the changes I've made to a repository with diffs inline.

I can use

git diff -b

or

git diff -w

to show a single diff that ignores various amounts of whitespace changes.

How can I pass that option to whatchanged in order to print out a list of changes I've made to my repository with inline diffs which ignores whitespace changes?

Upvotes: 10

Views: 4673

Answers (1)

brianz
brianz

Reputation: 7418

What about using git log -p -w? I believe that is the same output as whatchanged -p.

Upvotes: 13

Related Questions