Create a Rails 3 generator from git commit history.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/generators/generator_from_diff
spec
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
generate_from_diff.gemspec

README.rdoc

generate_from_diff

Create a Rails 3 generator from git commit history. Example:

rails generate generator_from_diff my_change HEAD~1 HEAD

This will generate a new Rails 3 generator called “my_change” using a “git diff” command with the specified git revisions. When the my_change generator is later run the code changes will be applied using Larry Wall's GNU patch command to whatever files are present.

This is a way of recording code changes made in one Rails project, and playing them back in another.

Copyright

Copyright © 2010 Pat Shaughnessy. See LICENSE for details.