

12·
9 days agoMore people have been to Berlin than I have


More people have been to Berlin than I have
I heavily use githooks to let everyone have their cake and eat it too. Eg:
Git post checkout hook converts something i don’t like to how i prefer it
Do some things
Git pre-commit hook converts my preferred thing back to the format as committed.
Usually i can do these with a one-liner from some combination of jc, jq, yq, and yamlfmt and for everything else there’s sed. If there’s a linter or formatter in the repo I’ll run those in a pre commit hook after all my stuff. The best part is it just takes an executable so you can write it in anything you can shebang, compile, or interpret.
JC is underrated and YQ i avoid for most cases but it’s quite good with comment handling and preservation
What? No say the exact same words again. What’s a singdis? Audio process singdis order? Audio processing disorder! Oh, I have one of those! Why? What’s up? I wasn’t listening.