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 puts
"You have commits shelved on this branch"
24 puts
"No commits nee to be unshelved"
33 puts cmd
if options
[:verbose]
38 puts cmd
if options
[:verbose]