3 #this will shelve your current changes to a new branch
11 branch
= OptionParser
.new
do |opts
|
12 opts
.on("-v", "--[no-]verbose", "Verbose output (echo individual git commands)") do |v
|
16 self.options
= {:verbose => false}.merge options
20 if get('git-log --pretty=\'format:%s\' -n1').strip
== 'SHELVE SHELVE SHELVE'
21 git('git-reset --soft HEAD^')
30 puts cmd
if options
[:verbose]
35 puts cmd
if options
[:verbose]