Skip to content

Instantly share code, notes, and snippets.

@dpetranek
Forked from amalloy/.gitattributes
Created April 10, 2017 19:18
Show Gist options
  • Select an option

  • Save dpetranek/c7154303aab189ecc9aa8d239d4f1702 to your computer and use it in GitHub Desktop.

Select an option

Save dpetranek/c7154303aab189ecc9aa8d239d4f1702 to your computer and use it in GitHub Desktop.
Clojure-aware git-diff hunk headers
*.clj diff=clojure
*.cljs diff=clojure
*.cljx diff=clojure
git config --global core.attributesfile ~/.gitattributes
git config --global diff.clojure.xfuncname '(^\(.*|\s*\(defn.*)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment