Good Morning!
👋
morning!
o/
😼
Morning
morning
Morning
månmån
Bore da :welsh_flag:
Bore da! :flag-wales:
Morning
Morning
Has anyone done one of these for clojure? https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
Would this help? <https://gist.github.com/amalloy/ea5eada8a5bffc722b9ba8e44b7d5e2c>
at least to get started
Ah interesting. I came up with this while playing around for a few minutes.
[diff "clj"]
xfuncname = "^(\\((defmethod|def|defn|ns).*)$"
Though there's definitely more. And I need to figure out the regex incantation to exclude things beyond the [
so I just get the name
you could do something like xfuncname = "^[ \t]*(\\((ns|def[a-zA-Z0-9_-]*)[ \t]+[^[]+).*$"
, assuming everything you are interested in starts with def
Yeah, ended up with something like that. Seems to work quite nicely: https://gist.github.com/cddr/f269b4465a823e567bd85eb3aa16ed0d
Mornin