git-multirepo 1.0.0.beta10 → 1.0.0.beta11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/info.rb +1 -1
- data/lib/multirepo/commands/add-command.rb +4 -0
- data/lib/multirepo/commands/branch-command.rb +7 -0
- data/lib/multirepo/commands/checkout-command.rb +8 -0
- data/lib/multirepo/commands/remove-command.rb +7 -0
- data/lib/multirepo/commands/update-command.rb +7 -0
- 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: a516af9dddd49b976920b98a8a4445570950c3dd
|
4
|
+
data.tar.gz: 5208a8d30f9300e81e1fa617642bece5c8481434
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69fbd3cb2f3c35863bde7e49890c8e9956435ef6b1dcb0c766c51b84f72499ecbd1aa3c9eb7744494a0a874e5d71a25e40583274e80f021a0a7dace247a126e5
|
7
|
+
data.tar.gz: c7d216c8bb43c02fcd46665506a6a42b148e70c0bed16e67b4cb1bf7baeaa4863acacaca957bc2259ef2eb11c56ebd5829e8eca51128ca27ad2fd854951f7c2c
|
data/lib/info.rb
CHANGED
@@ -6,6 +6,10 @@ module MultiRepo
|
|
6
6
|
self.command = "add"
|
7
7
|
self.summary = "Track an additional dependency with multirepo."
|
8
8
|
|
9
|
+
def self.options
|
10
|
+
[['[path]', 'The relative path to the new dependency (e.g. ../MyNewDependency)']].concat(super)
|
11
|
+
end
|
12
|
+
|
9
13
|
def initialize(argv)
|
10
14
|
@path = argv.shift_argument
|
11
15
|
super
|
@@ -6,6 +6,13 @@ module MultiRepo
|
|
6
6
|
self.command = "branch"
|
7
7
|
self.summary = "Create and/or checkout a new branch for all repos."
|
8
8
|
|
9
|
+
def self.options
|
10
|
+
[
|
11
|
+
['[branch name]', 'The name of the branch to create and checkout.'],
|
12
|
+
['--force', 'Force creating the branch even if the repos contain uncommmitted changes.']
|
13
|
+
].concat(super)
|
14
|
+
end
|
15
|
+
|
9
16
|
def initialize(argv)
|
10
17
|
@branch_name = argv.shift_argument
|
11
18
|
@force = argv.flag?("force")
|
@@ -5,6 +5,14 @@ module MultiRepo
|
|
5
5
|
self.command = "checkout"
|
6
6
|
self.summary = "Checks out the specified commit or branch of the main repo and checks out matching versions of all dependencies."
|
7
7
|
|
8
|
+
def self.options
|
9
|
+
[
|
10
|
+
['[ref]', 'The main repo tag, branch or commit hash to checkout.'],
|
11
|
+
['--latest', 'Checkout the HEAD of each dependency branch (as recorded in the lock file) instead of the exact required commits.'],
|
12
|
+
['--exact', 'Checkout the exact specified ref for each repo, regardless of what\'s stored in the lock file.']
|
13
|
+
].concat(super)
|
14
|
+
end
|
15
|
+
|
8
16
|
def initialize(argv)
|
9
17
|
@ref = argv.shift_argument
|
10
18
|
@checkout_latest = argv.flag?("latest")
|
@@ -6,6 +6,13 @@ module MultiRepo
|
|
6
6
|
self.command = "remove"
|
7
7
|
self.summary = "Removes the specified dependency from multirepo."
|
8
8
|
|
9
|
+
def self.options
|
10
|
+
[
|
11
|
+
['[path]', 'The relative path to the dependency to remove (e.g. ../MyOldDependency).'],
|
12
|
+
['--delete', 'Delete the dependency on disk in addition to removing it from the multirepo config.']
|
13
|
+
].concat(super)
|
14
|
+
end
|
15
|
+
|
9
16
|
def initialize(argv)
|
10
17
|
@path = argv.shift_argument
|
11
18
|
@delete = argv.flag?("delete")
|
@@ -5,6 +5,13 @@ module MultiRepo
|
|
5
5
|
self.command = "update"
|
6
6
|
self.summary = "Force-updates the multirepo lock file."
|
7
7
|
|
8
|
+
def self.options
|
9
|
+
[
|
10
|
+
['--force', 'Update the lock file even if dependencies contain uncommitted changes.'],
|
11
|
+
['--commit', 'Commit the lock file after updating it.']
|
12
|
+
].concat(super)
|
13
|
+
end
|
14
|
+
|
8
15
|
def initialize(argv)
|
9
16
|
@commit = argv.flag?("commit")
|
10
17
|
@force = argv.flag?("force")
|