Skip to content

Instantly share code, notes, and snippets.

Last active April 23, 2017 20:19
What would you like to do?
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.*?\\(.*?\\))"
Copy link

eilgin commented Apr 23, 2017

Cool tip !
But this doesn't work for functions like this (ES2015 syntax):

class Foo {
  constructor () { = "baz"

  getBar () {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment