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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33df1c498ff614187d42415a0e4d06418403f722
4
- data.tar.gz: e249b1c7e1e258f7dac5629dc6cd1da399d59305
3
+ metadata.gz: a516af9dddd49b976920b98a8a4445570950c3dd
4
+ data.tar.gz: 5208a8d30f9300e81e1fa617642bece5c8481434
5
5
  SHA512:
6
- metadata.gz: 8aef8afbcd3abdb4a24ed8eec7f80197ff5560b894c9bc5c44f8cbf6b7a5c8ad582542432ce3c3f97dad30d77105c7d94028a0d0b83418be218a8379c56489be
7
- data.tar.gz: 4753f1d8a0eb01b2c734fefe77c71a5db34033697dea2896bff4dc935e49bc8cbad446963ebd52e8801088cab56a3440ef82c66239b58d91c9cc72a9e03372f6
6
+ metadata.gz: 69fbd3cb2f3c35863bde7e49890c8e9956435ef6b1dcb0c766c51b84f72499ecbd1aa3c9eb7744494a0a874e5d71a25e40583274e80f021a0a7dace247a126e5
7
+ data.tar.gz: c7d216c8bb43c02fcd46665506a6a42b148e70c0bed16e67b4cb1bf7baeaa4863acacaca957bc2259ef2eb11c56ebd5829e8eca51128ca27ad2fd854951f7c2c
data/lib/info.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module MultiRepo
2
2
  NAME = "git-multirepo"
3
- VERSION = "1.0.0.beta10"
3
+ VERSION = "1.0.0.beta11"
4
4
  DESCRIPTION = "Track multiple Git repositories side-by-side."
5
5
  end
@@ -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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-multirepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta10
4
+ version: 1.0.0.beta11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michaël Fortin