rubocop-git 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/git/options.rb +2 -2
- data/lib/rubocop/git/runner.rb +3 -6
- data/lib/rubocop/git/version.rb +1 -1
- 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: fea0fc048051dc4134a08fb53beffc0cd1d56102
|
4
|
+
data.tar.gz: 2bea213792be9f28bdfbdaf602fb6e53f2a79280
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca915131ae38037b4cb99f74d71e2984f7d1291816c5408328917fae916fe768c7f583df3e7fb96978d2f75088eba10a1d4c110a89f8dc73cdb381510d5b92d5
|
7
|
+
data.tar.gz: ffc46d4d0d07b21ff7899a77ab823a8dd687fa0f6cdc4602367b295d28cd7e1c1e3268b865a519d9d949886b62d9cfbbdcd19e315e9b35a8599dd1a387848732
|
data/lib/rubocop/git/options.rb
CHANGED
data/lib/rubocop/git/runner.rb
CHANGED
@@ -35,12 +35,9 @@ module RuboCop
|
|
35
35
|
def git_diff(options)
|
36
36
|
args = %w(diff --diff-filter=AMCR --find-renames --find-copies)
|
37
37
|
|
38
|
-
if options.cached
|
39
|
-
|
40
|
-
|
41
|
-
args << options.commit_first.shellescape
|
42
|
-
args << options.commit_last.shellescape
|
43
|
-
end
|
38
|
+
args << '--cached' if options.cached
|
39
|
+
args << options.commit_first.shellescape if options.commit_first
|
40
|
+
args << options.commit_last.shellescape if options.commit_last
|
44
41
|
|
45
42
|
`git #{args.join(' ')}`
|
46
43
|
end
|
data/lib/rubocop/git/version.rb
CHANGED