/git-run

git run runs commands in git revisions

Primary LanguageRubyMIT LicenseMIT

git run

git run runs commands in git revisions

Getting started

Install git run through Rubygems:

$ gem install git-run

After installing, you'll have the git run subcommand for git:

$ git run
Usage: git run [options] <revision> <command>
    -h, --help                       Show this message

Time to try it out. Let's say you have passing test:

$ ruby test.rb
.....

You want to know if the test was passing in ealier revision, so you use git run to quickly switch to the revision and run the test:

$ git run ad1211 ruby test.rb
...FF

Now you know.