grb 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -0
- data/TODO +1 -0
- data/VERSION +1 -1
- data/lib/grb.rb +10 -3
- metadata +8 -8
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/grb.rb
CHANGED
@@ -58,7 +58,7 @@ class Grb
|
|
58
58
|
:desc => "=> pull branch `branch`,default current_branch\ngrb pull [branch] [--explain]",
|
59
59
|
:commands => [
|
60
60
|
'"#{GIT} fetch #{origin}"',
|
61
|
-
'if local_branches.include?(branch)
|
61
|
+
'if local_branches.include?(branch)
|
62
62
|
"#{GIT} config branch.#{branch}.remote #{origin}\n" +
|
63
63
|
"#{GIT} config branch.#{branch}.merge refs/heads/#{branch}"
|
64
64
|
else
|
@@ -91,7 +91,14 @@ class Grb
|
|
91
91
|
:commands => [
|
92
92
|
'"#{GIT} remote rm #{branch}"',
|
93
93
|
]
|
94
|
-
}
|
94
|
+
},
|
95
|
+
|
96
|
+
:prune => {
|
97
|
+
:desc => "=> prunes the remote branches from the list\ngrb prune",
|
98
|
+
:commands => [
|
99
|
+
'"#{GIT} remote prune #{origin}"',
|
100
|
+
]
|
101
|
+
}
|
95
102
|
}
|
96
103
|
|
97
104
|
def self.parse(opt)
|
@@ -100,7 +107,7 @@ class Grb
|
|
100
107
|
|
101
108
|
COMMANDS[opt[:command].to_sym][:commands].map {|x| exec_cmd(eval(x))}
|
102
109
|
else
|
103
|
-
|
110
|
+
help
|
104
111
|
end
|
105
112
|
end
|
106
113
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jinzhu Zhang
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-04-08 00:00:00 +08:00
|
19
19
|
default_executable: grb
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -39,8 +39,8 @@ homepage: http://github.com/jinzhu/grb
|
|
39
39
|
licenses: []
|
40
40
|
|
41
41
|
post_install_message:
|
42
|
-
rdoc_options:
|
43
|
-
|
42
|
+
rdoc_options: []
|
43
|
+
|
44
44
|
require_paths:
|
45
45
|
- lib
|
46
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements: []
|
65
65
|
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.4.2
|
68
68
|
signing_key:
|
69
69
|
specification_version: 3
|
70
70
|
summary: A tool to simplify working with remote branches
|