Last active
April 23, 2017 20:19
-
-
Save mcgwiz/9082394 to your computer and use it in GitHub Desktop.
Super simple JavaScript git diff hunk header config
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
*.js diff="javascript" |
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
# In git config: .git/config, ~/.gitconfig, /etc/gitconfig | |
[diff "javascript"] | |
xfuncname = "^\\s*(.*?\\bfunction\\b.*?\\(.*?\\))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool tip !
But this doesn't work for functions like this (ES2015 syntax):