Skip to content

Instantly share code, notes, and snippets.

@MIchaelMainer
Last active January 21, 2021 08:09
Show Gist options
  • Save MIchaelMainer/977a3cd5e79ecc528928ddbaba7fa6b2 to your computer and use it in GitHub Desktop.
Save MIchaelMainer/977a3cd5e79ecc528928ddbaba7fa6b2 to your computer and use it in GitHub Desktop.
Shows how to filter diff info
https://github.com/microsoftgraph/msgraph-sdk-dotnet/pull/869
`git diff dev -I "\/\/\sTemplate Source:.*.tt" -I "using System;" --ignore-space-change`
# PHP to get non-doc changes.
`git diff dev -I "\s{4}\*.*"`
# .net get non doc changes
`git diff master -I "\s{4,}\/{3}.*"`
# diff any number of whitespace followed by any characters (I forget if they are alphanumeric)
`git diff master -I "\s+.*"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment