Created
November 19, 2010 01:40
-
-
Save skalnik/706004 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
master_commits = [] | |
`git log --oneline --reverse master`.split("\n").each do |commit| | |
master_commits << commit[0..6] | |
end | |
presenting_commits = [] | |
`git log --oneline --reverse presenting`.split("\n").each do |commit| | |
presenting_commits << commit[0..6] | |
end | |
latest = master_commits[presenting_commits.size] | |
unless latest.nil? | |
`git cherry-pick #{latest}` | |
puts `git show #{latest}` | |
else | |
puts 'Demo over!' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment