Skip to content

Instantly share code, notes, and snippets.

@brasic
Created August 6, 2014 16:00
Show Gist options
  • Save brasic/5574534c7ef93a7d60a6 to your computer and use it in GitHub Desktop.
Save brasic/5574534c7ef93a7d60a6 to your computer and use it in GitHub Desktop.
Alias to list all specs created or modified since branching from master
# run all specs created or modified since branching from master
# put this in ~/.bash_profile
alias recentspecs='git log --name-status master.. | egrep '^[MA].+spec.rb$' | cut -f2 | uniq'
# example:
#
# $ bundle exec rspec `recentspecs`
# .................
#
# Finished in 0.6187 seconds
# 17 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment