Created
September 20, 2010 21:30
-
-
Save iangreenleaf/588684 to your computer and use it in GitHub Desktop.
Better diffs in git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[diff "ruby"] | |
wordRegex = (@@?|\\b:|[^:]:)?[[:alnum:]_]+|:\"[^\"]+\"|::|[^[:space:]] | |
[diff "php"] | |
wordRegex = \\${0,2}[[:alnum:]_]+|::|->|[^[:space:]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Must go in .git/info/attributes or .gitattributes for each repo | |
*.rb diff=ruby | |
*.php diff=php | |
*.html diff=php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment