thor_subtree 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/subtree +2 -2
- data/thor_subtree.gemspec +1 -1
- metadata +3 -3
data/bin/subtree
CHANGED
@@ -48,7 +48,7 @@ class Subtree < Thor
|
|
48
48
|
|
49
49
|
end
|
50
50
|
|
51
|
-
desc "extract
|
51
|
+
desc "extract REPO", "Extracts a plugin and pushes it to an upstream repo"
|
52
52
|
method_options :plugin => :string, :branch => :string, :since => :string
|
53
53
|
def extract(repo)
|
54
54
|
branch_name = options[:branch] || parse_git(repo)
|
@@ -58,7 +58,7 @@ class Subtree < Thor
|
|
58
58
|
run "git remote add #{branch_name} #{repo}"
|
59
59
|
run "git fetch #{branch_name}"
|
60
60
|
|
61
|
-
run "git subtree split --prefix=vendor/plugins/#{plugin_name} --branch #{branch_name}-master"
|
61
|
+
run "git subtree split --prefix=vendor/plugins/#{plugin_name} #{since_commit} --branch #{branch_name}-master"
|
62
62
|
run "git push #{branch_name} #{branch_name}-master:master"
|
63
63
|
run "git branch -D #{branch_name}-master"
|
64
64
|
|
data/thor_subtree.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor_subtree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benjamin Bryant
|