git-prune-remote-branch 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/git-prune-remote-branch +2 -0
- data/git-prune-remote-branch.gemspec +4 -4
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1ee4e5a106d9837a11e320f81dc6c89565e0117
|
4
|
+
data.tar.gz: 4b0f6a691210d4f17d3da7a8e75ce8efa21171f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e207c24504541624bf5f55009429a34c693d2f12874f8a9575972c14fdfed6fa184d1b01d144f0c3623e5af05595eb66c8f4dca1561e8fdfc226eda636373618
|
7
|
+
data.tar.gz: bf215992473fbe7d44518fc626090770889b249f3d3e4b66dbbd858fab84aff7ffc0fc6be0efcf289c98005743d8acd3fb757cdc0fa55865c29e5f6e367047db
|
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Delete all remote branches which merged into master or develop.
|
4
4
|
|
5
|
-
$
|
6
|
-
$
|
5
|
+
$ gem install git-prune-remote-branch
|
6
|
+
$ type rbenv && rbenv rehash
|
7
7
|
$ cd $GIT_DIR
|
8
8
|
$ git-prune-remote-branch --help
|
9
9
|
$ git-prune-remote-branch --noop
|
data/git-prune-remote-branch
CHANGED
@@ -10,6 +10,8 @@ opts.parse!
|
|
10
10
|
next if branch =~ %r![^/]+/master!
|
11
11
|
next if branch =~ %r![^/]+/develop!
|
12
12
|
|
13
|
+
branch.gsub!(%r!\(!, '\(')
|
14
|
+
branch.gsub!(%r!\)!, '\)')
|
13
15
|
if `git branch --contains #{branch}`.each_line.any? { |included| included.strip.chomp =~ /\A[* ]*(develop|master)\z/ }
|
14
16
|
ref = branch.sub(%r!^([^/]+)/!, '')
|
15
17
|
command = "git push --delete #{$1} #{ref}"
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "git-prune-remote-branch"
|
3
|
-
spec.version = '1.
|
4
|
-
spec.authors = ["Kensuke Nagae", "KITAITI Makoto"]
|
3
|
+
spec.version = '1.1.0'
|
4
|
+
spec.authors = ["Kensuke Nagae", "KITAITI Makoto", "koyachi"]
|
5
5
|
spec.email = ["kyanny@gmail.com"]
|
6
|
-
spec.description = %q{
|
7
|
-
spec.summary = %q{
|
6
|
+
spec.description = %q{Delete all remote branches which merged into master or develop.}
|
7
|
+
spec.summary = %q{Delete all remote branches which merged into master or develop.}
|
8
8
|
spec.homepage = "https://github.com/kyanny/git-prune-remote-branch"
|
9
9
|
spec.license = "MIT"
|
10
10
|
|
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-prune-remote-branch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kensuke Nagae
|
8
8
|
- KITAITI Makoto
|
9
|
+
- koyachi
|
9
10
|
autorequire:
|
10
11
|
bindir: "."
|
11
12
|
cert_chain: []
|
12
|
-
date: 2014-
|
13
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
13
14
|
dependencies: []
|
14
|
-
description:
|
15
|
+
description: Delete all remote branches which merged into master or develop.
|
15
16
|
email:
|
16
17
|
- kyanny@gmail.com
|
17
18
|
executables:
|
@@ -44,9 +45,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
45
|
version: '0'
|
45
46
|
requirements: []
|
46
47
|
rubyforge_project:
|
47
|
-
rubygems_version: 2.2.
|
48
|
+
rubygems_version: 2.2.2
|
48
49
|
signing_key:
|
49
50
|
specification_version: 4
|
50
|
-
summary:
|
51
|
+
summary: Delete all remote branches which merged into master or develop.
|
51
52
|
test_files: []
|
52
53
|
has_rdoc:
|