mgit 0.4.12 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mgit/commands/checkout.rb +4 -3
- data/lib/mgit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f75456ebff947e1085d855bc595f2e4cefcc1a57
|
4
|
+
data.tar.gz: a0d0419c2bed6a8c7a989992fc6c298c1a08b455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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}."
|
data/lib/mgit/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|