Git: filter changeset diff to a list of extensions

Given you have a large changeset and want to view the diff only for a list of given extensions:

$ git diff -- '*.js' '*.json'

Sources