3 ms·
That's a really interesting question. I tried to think about that when I was writing this blog post and couldn't really think about anything. Perhaps setting
by ethomson 8y ago
That's a really interesting question. I tried to think about that when I was writing this blog post and couldn't really think about anything. Perhaps setting some permissions on a file or running `chattr` / `setfacl` is the best idea I had, but I omitted any suggestions because I've never actually used a post-checkout hook in anger.
- avar 8y agoThe post-checkout hook gets used for things like concatenating JS and CSS assets in a repository that's meant to house templates, i.e. a poor man's invocation of "make" whenever a user does a "git pull" without the user having to do anything extra. It can also be used for other cases where you'd like to amend what git does by default when updating the tree. See this recent thread[1] where some users want to have mtime behavior on files that's different from git's defaults, and one way to do that is via a post-checkout hook. 1. https://public-inbox.org/git/20180413170129.15310-1-mgorny@gentoo.org/ https://public-inbox.org/git/20180413170129.15310-1-mgorny@g...