Sha256: 213c010defba7014205c00b392f02e48fcefc676f6ff45a90103a2072cfb25fe

Contents?: true

Size: 451 Bytes

Versions: 12

Compression:

Stored size: 451 Bytes

Contents

module DNGG
  module Stash
    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

    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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dngg-1.0.1 lib/dngg/util/stash.rb
dngg-1.0.0 lib/dngg/util/stash.rb
dngg-0.1.0 lib/dngg/util/stash.rb
dngg-0.0.9 lib/dngg/util/stash.rb
dngg-0.0.8 lib/dngg/util/stash.rb
dngg-0.0.7 lib/dngg/util/stash.rb
dngg-0.0.6 lib/dngg/util/stash.rb
dngg-0.0.5 lib/dngg/util/stash.rb
dngg-0.0.4 lib/dngg/util/stash.rb
dngg-0.0.3 lib/dngg/util/stash.rb
dngg-0.0.2 lib/dngg/util/stash.rb
dngg-0.0.1 lib/dngg/util/stash.rb