# File lib/git-up.rb, line 175 def with_stash stashed = false if change_count > 0 puts "stashing #{change_count} changes".magenta repo.git.stash stashed = true end yield if stashed puts "unstashing".magenta repo.git.stash({}, "pop") end end