gitlab_git 7.2.22 → 7.2.23
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 +4 -4
- data/VERSION +1 -1
- data/lib/gitlab_git/commit.rb +3 -2
- data/lib/gitlab_git/repository.rb +8 -4
- 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: 526652cdb899fa7a93b738a96cdbaf3bd4253696
|
4
|
+
data.tar.gz: 72c0a8515d8ff04ad5883a2df941d12f73e6042e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20e1b6d5258a55c78e9ba98f64dfb4c307aca056937f5c2f3b50a30cccedc85f9ded4c0f29186a7d9c1ef6936bbd59c63870abdc4b3c073175fd27312ba10e67
|
7
|
+
data.tar.gz: d1abe2c401395bb8e05de03c1d681a5c7848d9fe1be9f1e1e06120c3977b17de7c99b2770fd7cb9e0e83bf965bdb3d4ea03fdccd6140c95020d37830d8f27dfb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.2.
|
1
|
+
7.2.23
|
data/lib/gitlab_git/commit.rb
CHANGED
@@ -87,10 +87,11 @@ module Gitlab
|
|
87
87
|
).first
|
88
88
|
end
|
89
89
|
|
90
|
-
# Get commits between two
|
90
|
+
# Get commits between two revspecs
|
91
|
+
# See also #repository.commits_between
|
91
92
|
#
|
92
93
|
# Ex.
|
93
|
-
# Commit.between('29eda46b', 'master')
|
94
|
+
# Commit.between(repo, '29eda46b', 'master')
|
94
95
|
#
|
95
96
|
def between(repo, base, head)
|
96
97
|
repo.commits_between(base, head).map do |commit|
|
@@ -265,14 +265,18 @@ module Gitlab
|
|
265
265
|
obj
|
266
266
|
end
|
267
267
|
|
268
|
-
# Return a collection of Rugged::Commits between the two
|
269
|
-
#
|
268
|
+
# Return a collection of Rugged::Commits between the two revspec arguments.
|
269
|
+
# See http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for
|
270
|
+
# a detailed list of valid arguments.
|
270
271
|
def commits_between(from, to)
|
271
272
|
walker = Rugged::Walker.new(rugged)
|
272
273
|
walker.sorting(Rugged::SORT_DATE | Rugged::SORT_REVERSE)
|
273
274
|
|
274
|
-
|
275
|
-
|
275
|
+
sha_from = sha_from_ref(from)
|
276
|
+
sha_to = sha_from_ref(to)
|
277
|
+
|
278
|
+
walker.push(sha_to)
|
279
|
+
walker.hide(sha_from)
|
276
280
|
|
277
281
|
commits = walker.to_a
|
278
282
|
walker.reset
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.2.
|
4
|
+
version: 7.2.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Zaporozhets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-linguist
|