git-multirepo 1.0.0.beta8 → 1.0.0.beta9

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: e9ad5ee555bc3b8b8f852f25fd44f5a5d3c04ef5
4
- data.tar.gz: c29eef7d6594b10e7315ddeee749b1712b05334e
3
+ metadata.gz: ee4d68e2747d9f3aae3477b021efef28e0fcf1b9
4
+ data.tar.gz: 4ffbdd5876652f3f1022fc2b42355cf5b31ceea6
5
5
  SHA512:
6
- metadata.gz: efb4c58d7bd217a7cdc0c9aedd1f73c6eb0da30373735665383d7ece48383772b2cbd9d1b94689b195dbb4139784fbc5181874f9c5f6a3a2d5221cf961c4f7a8
7
- data.tar.gz: 392a5cb006af419129810ec669735723da12106aacfc5129c870cf533b40e1461062937a1a68616c72001965d9d91f459feedc4ebe5bc2df0df1431adc8d92c8
6
+ metadata.gz: d8b4567fc61da6330aef456e060db866ddfce8e9f53fea4b1749125f8ff3faec73c808d39f108910ecd70de0bd537da2d8656c7479a20c56e4ae18b87d3ef20a
7
+ data.tar.gz: 27329de282dc4495004977df3e88440f79844f6c51ba168aa87524f221bbd57e67cb31b664d96d78bbe4eb72e41c109ea242b364f379ad1b43fd622a6a810a05
data/lib/info.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module MultiRepo
2
2
  NAME = "git-multirepo"
3
- VERSION = "1.0.0.beta8"
3
+ VERSION = "1.0.0.beta9"
4
4
  DESCRIPTION = "Track multiple Git repositories side-by-side."
5
5
  end
@@ -5,6 +5,11 @@ module MultiRepo
5
5
  self.command = "update"
6
6
  self.summary = "Force-updates the multirepo lock file."
7
7
 
8
+ def initialize(argv)
9
+ @commit = argv.flag?("commit")
10
+ super
11
+ end
12
+
8
13
  def run
9
14
  super
10
15
  ensure_multirepo_initialized
@@ -15,6 +20,11 @@ module MultiRepo
15
20
  Console.log_substep("Updated lock file")
16
21
 
17
22
  self.install_pre_commit_hook
23
+
24
+ if @commit
25
+ Console.log_substep("Committing updated lock file")
26
+ LockFile.commit
27
+ end
18
28
 
19
29
  Console.log_step("Done!")
20
30
  rescue MultiRepoException => e
@@ -25,6 +25,10 @@ module MultiRepo
25
25
 
26
26
  Git.run_in_current_dir("add -A #{FILE.to_s}", false)
27
27
  end
28
+
29
+ def self.commit
30
+ Git.run_in_current_dir("commit -m \"Updated multirepo lock file with the latest version of all dependencies\" -o -- #{FILE.to_s}", false)
31
+ end
28
32
 
29
33
  def self.validate_components(line, components)
30
34
  unless components.count == 2
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.beta8
4
+ version: 1.0.0.beta9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michaël Fortin