Abusing Git pre-commit hooks for fun and profit
So, git pre-commit hooks are executable files (yes, you have to declare them as chmod +x - for some reason I forget this every time I write hooks) that are run right before you commit. This type of stuff lets you verify that your application is working, run a few tests, etc before it gets committed. At least the current use case I have (that probably illustrates the point of this particular hook fairly well) is related to this website. So, as I started working on this, I realized that categories are implmented as user plugins which aren’t allowed by github-pages for security reasons. Since all I’m doing is generating a static website, that doesn’t really matter as long as I copy the categories directory to the root, right? Why not automate that shit? ...