Skip to content

Instantly share code, notes, and snippets.

@imbriaco
Created March 23, 2010 02:45
Show Gist options
  • Save imbriaco/340802 to your computer and use it in GitHub Desktop.
Save imbriaco/340802 to your computer and use it in GitHub Desktop.
namespace :pending do
desc <<-DESC
Displays the `diff' since your last deploy. This is useful if you want \
to examine what changes are about to be deployed. Note that this might \
not be supported on all SCM's.
DESC
task :diff, :except => { :no_release => true } do
system(source.local.diff(current_revision))
end
desc <<-DESC
Displays the commits since your last deploy. This is good for a summary \
of the changes that have occurred since the last deploy. Note that this \
might not be supported on all SCM's.
DESC
task :default, :except => { :no_release => true } do
from = source.next_revision(current_revision)
system(source.local.log(from))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment