mgit 0.4.12 → 0.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff636b044f30882e8550777fddc2801c60ab1ff1
4
- data.tar.gz: 9144a02cbbec80343fd3b728ddbeaa74374318e2
3
+ metadata.gz: f75456ebff947e1085d855bc595f2e4cefcc1a57
4
+ data.tar.gz: a0d0419c2bed6a8c7a989992fc6c298c1a08b455
5
5
  SHA512:
6
- metadata.gz: 1213de1265ff3e5a917953241112a5d0700500091460e4d5dd8d1322e1f586de00d55f8e1a3f9016c71706a84da29d30dd6823eb59838778a56f58db43ac8035
7
- data.tar.gz: dd78a111c0a5ce55530ae72afa410b3abef8bb28e52a829100b5d66cf009f2b95fa89215bee28d663cdfd350d693ecdfe90a93837e8a9bff78c66bcc5c2a889c
6
+ metadata.gz: c9613aea4840fe5b2959797699328430a6b9376e8ad7289bb9af667c6610ab9f7bee45726b896c3d7869325c4ccf3f9467fcb741289788bfe489b0d0800c893c
7
+ data.tar.gz: 0c7bbd38b3b6e45afafe228231eb1c57a506b7fd741c36548c7f3ce466a8293571909cca715b4e9c0113882da480a453d0e68503ad76a8357fc25ed2d175fa1d
@@ -1,6 +1,7 @@
1
1
  module MGit
2
2
  class CheckoutCommand < Command
3
3
  def execute(args)
4
+ @git_args = args.shift if args.length == 2
4
5
  @commit = args.shift
5
6
 
6
7
  if repos.empty?
@@ -11,11 +12,11 @@ module MGit
11
12
  end
12
13
 
13
14
  def arity
14
- [1, 1]
15
+ [1, 2]
15
16
  end
16
17
 
17
18
  def usage
18
- 'checkout <commit-sha/obj>'
19
+ 'checkout [additional git args] <commit-sha/obj>'
19
20
  end
20
21
 
21
22
  def description
@@ -39,7 +40,7 @@ module MGit
39
40
  next
40
41
  end
41
42
 
42
- repo.in_repo { System.git("checkout -q #{@commit}") }
43
+ repo.in_repo { System.git("checkout -q #{@git_args || ''} #{@commit}") }
43
44
  pinfo "Switched to #{@commit} in repository #{repo.name}."
44
45
  rescue GitError
45
46
  perror "Failed to checkout #{@commit} in repository #{repo.name}."
@@ -1,3 +1,3 @@
1
1
  module MGit
2
- VERSION = '0.4.12'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.12
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlavourSys Technology GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-01 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize