Skip to content

Instantly share code, notes, and snippets.

@fmnoise
Forked from amalloy/.gitattributes
Created June 22, 2021 08:42
Show Gist options
  • Save fmnoise/d16251fed642d2770d49abdb829bf1d3 to your computer and use it in GitHub Desktop.
Save fmnoise/d16251fed642d2770d49abdb829bf1d3 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