Super simple JavaScript git diff hunk header config
*.js diff="javascript" |
# 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
This comment has been minimized.
Cool tip !
But this doesn't work for functions like this (ES2015 syntax):