Sha256: 948a806a39962b19ce49eb0463ca8faa38db2224bf1df8b40e3438cac014d89d
Contents?: true
Size: 825 Bytes
Versions: 8
Compression:
Stored size: 825 Bytes
Contents
require_relative '../util/submodule' require_relative '../util/stash' module GGSM module Delete include Submodule include Stash def delete_flow(branch, remote, all) check_submodule puts '==> 进入主工程:'.yellow delete_branch(all, branch, remote) foreach_module { delete_branch(all, branch, remote) } end def delete_branch(all, branch, remote) if all system "git branch -D #{branch}" result = system "git push origin -d #{branch}" unless result system 'git fetch -p origin' end elsif remote result = system "git push origin -d #{branch}" unless result system 'git fetch -p origin' end else system "git branch -D #{branch}" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems