Skip to content

Instantly share code, notes, and snippets.

@mashimom
Forked from amalloy/.gitattributes
Created July 18, 2020 09:57
Show Gist options
  • Save mashimom/462884246d5f3f1846304eb4c3c16c2f to your computer and use it in GitHub Desktop.
Save mashimom/462884246d5f3f1846304eb4c3c16c2f 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