git_commands 3.2.8 → 3.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/git_commands/computer.rb +9 -9
- data/lib/git_commands/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc41c685ee29b19f620cbf0048aabc586edd6afe
|
|
4
|
+
data.tar.gz: b0f79689c6acfff02ba0063949758c9882b56047
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68a1bfc9f4ebd26648c29150a8d12a019cee51338d39e05de19bdae3202bdd74ea549595b644d710ed9ffef5655bacacc9dbba0003e6a66e24f08eb0d232d812
|
|
7
|
+
data.tar.gz: d6328e5ff3d553be85d27572e62160b7bafbd727af9e01f0ec45ead34e6415aaf076359ed290da75dc5d8620f874c325d595bc923d0163375657a375b523beb3
|
|
@@ -53,21 +53,21 @@ module GitCommands
|
|
|
53
53
|
|
|
54
54
|
def aggregate
|
|
55
55
|
temp = "temp/#{@timestamp}"
|
|
56
|
-
|
|
57
|
-
confirm("Aggregate branches into #{
|
|
56
|
+
release = "release/#{@timestamp}"
|
|
57
|
+
confirm("Aggregate branches into #{release}") do
|
|
58
58
|
enter_repo do
|
|
59
|
-
`git branch #{
|
|
59
|
+
`git branch #{release}`
|
|
60
60
|
@branches.each do |branch|
|
|
61
61
|
warning("Merging branch: #{branch}")
|
|
62
62
|
`git checkout -b #{temp} origin/#{branch} --no-track`
|
|
63
|
-
exit unless rebase_with_master
|
|
64
|
-
`git rebase #{
|
|
65
|
-
`git checkout #{
|
|
63
|
+
remove_locals([temp, release]) && exit unless rebase_with_master
|
|
64
|
+
`git rebase #{release}`
|
|
65
|
+
`git checkout #{release}`
|
|
66
66
|
`git merge #{temp}`
|
|
67
67
|
`git branch -D #{temp}`
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
|
-
success("#{
|
|
70
|
+
success("#{release} branch created")
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -98,9 +98,9 @@ module GitCommands
|
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
private def remove_locals
|
|
101
|
+
private def remove_locals(branches = @branches)
|
|
102
102
|
`git checkout #{Branch::MASTER}`
|
|
103
|
-
|
|
103
|
+
branches.each do |branch|
|
|
104
104
|
`git branch -D #{branch}`
|
|
105
105
|
end
|
|
106
106
|
end
|
data/lib/git_commands/version.rb
CHANGED