method_log
method_log copied to clipboard
WIP: First stab at git post-commit hook
The post-commit hook parses the state of the code after each commit to the master branch, builds a tree of method definition "files" using ri-style naming, and adds a corresponding commit to the orphan method-log branch.
-
This code assumes the
method-logbranch already exists. -
I've not thought about what happens if the history on
masteris re-written. -
There is no explicit reference between the commits on
masterand those on themethod-logbranch. -
I'm not sure how tenable it is to use a
Gemfileand bundler for this hook. Maybe an in-lineGemfilemight be better. -
I've duplicated some code from elsewhere in the repo, e.g.
#unindent. -
I've used
instance_variable_geton the instance ofMethodFinder, but it would be easy to surface this as a public attribute reader method.
Note that the code in this branch is very similar to that in the recently added build_methods_repo script.
Rebased against master and force-pushed.