module GGSM::Stash

Public Instance Methods

stash_pop(arry_conflict, module_name) click to toggle source
# File lib/ggsm/util/stash.rb, line 13
def stash_pop(arry_conflict, module_name)
  stash_pop = `git stash pop | grep 'CONFLICT'`
  if stash_pop.strip != ''
    arry_conflict.push(module_name)
  end
end
try_stash() click to toggle source
# File lib/ggsm/util/stash.rb, line 3
def try_stash
  status = `git status --ignore-submodules | grep 'nothing to commit'`
  need_stash = false
  if status.strip == ''
    need_stash = true
    `git stash`
  end
  need_stash
end