ruby-git-lacravate 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git/lib.rb +9 -3
- metadata +2 -2
data/lib/git/lib.rb
CHANGED
@@ -68,7 +68,9 @@ module Git
|
|
68
68
|
|
69
69
|
|
70
70
|
def log_commits(opts = {})
|
71
|
-
|
71
|
+
#
|
72
|
+
arr_opts = ['--pretty=oneline', '--no-color']
|
73
|
+
#
|
72
74
|
arr_opts << "-#{opts[:count]}" if opts[:count]
|
73
75
|
arr_opts << "--since=#{opts[:since]}" if opts[:since].is_a? String
|
74
76
|
arr_opts << "--until=#{opts[:until]}" if opts[:until].is_a? String
|
@@ -87,7 +89,9 @@ module Git
|
|
87
89
|
end
|
88
90
|
|
89
91
|
def full_log_commits(opts = {})
|
90
|
-
|
92
|
+
#
|
93
|
+
arr_opts = ['--pretty=raw', '--no-color']
|
94
|
+
#
|
91
95
|
arr_opts << "-#{opts[:count]}" if opts[:count]
|
92
96
|
arr_opts << "--skip=#{opts[:skip]}" if opts[:skip]
|
93
97
|
arr_opts << "--since=#{opts[:since]}" if opts[:since].is_a? String
|
@@ -261,7 +265,9 @@ module Git
|
|
261
265
|
end
|
262
266
|
|
263
267
|
def diff_full(obj1 = 'HEAD', obj2 = nil, opts = {})
|
264
|
-
|
268
|
+
#
|
269
|
+
diff_opts = ['-p', '--no-color']
|
270
|
+
#
|
265
271
|
diff_opts << obj1
|
266
272
|
diff_opts << obj2 if obj2.is_a?(String)
|
267
273
|
diff_opts << '--' << opts[:path_limiter] if opts[:path_limiter].is_a? String
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-git-lacravate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire: git
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: lacravate@lacravate.fr
|