|
@@ -240,20 +240,6 @@ avoiding work is better than using more workers. Moreover, being
|
240
|
240
|
able to determine (and expose) what files just changed enables new
|
241
|
241
|
functionality such as plugins that cross-post to tumblr.
|
242
|
242
|
|
243
|
|
-Git's post-receive hook is supposed to get a list of refs on $STDIN.
|
244
|
|
-A brave soul could update our post-receive script to iterate over
|
245
|
|
-those lines as shown in step 3 of this [blog post][post_receive_blog].
|
246
|
|
-There would be two primary benefits:
|
247
|
|
-
|
248
|
|
-1. We could pass the oldrev (previous revision) of the blog repo
|
249
|
|
- to `coleslaw:main`. That could be used in conjunction with
|
250
|
|
- `get-updated-files` to get a list of the files modified in the
|
251
|
|
- last push. This would enable cross-posting plugins to be developed
|
252
|
|
- as well as opening the door for incremental compilation.
|
253
|
|
-2. More seriously, **Coleslaw** currently deploys for _any_ branch
|
254
|
|
- pushed to the bare repo. This change would also ensure that we only
|
255
|
|
- invoke `coleslaw:main` when a push is made to the master branch.
|
256
|
|
-
|
257
|
243
|
This is a cool project and the effects are far reaching. Among other
|
258
|
244
|
things the existing deployment model would not work as it involves
|
259
|
245
|
rebuilding the entire site. In all likelihood we would want to update
|
|
@@ -264,7 +250,6 @@ would have to be regenerated along with any tag or month indexes
|
264
|
250
|
matching the modified files. If incremental compilation is a goal,
|
265
|
251
|
simply disabling the indexes may be appropriate for certain users.
|
266
|
252
|
|
267
|
|
-[post_receive_blog]: http://codeshal.tumblr.com/post/927943180/git-post-receive-hook-that-submits-code-to-review-board
|
268
|
253
|
[post_receive_hook]: https://github.com/redline6561/coleslaw/blob/master/examples/example.post-receive
|
269
|
254
|
[closure_template]: https://github.com/archimag/cl-closure-template
|
270
|
255
|
[api_docs]: https://github.com/redline6561/coleslaw/blob/master/docs/plugin-api.md
|