gitlab_git 7.2.22 → 7.2.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0f98195d9f6a0ab4792c5e7505ca3a1e3715c48
4
- data.tar.gz: 583593e0e7dc9b2f88cb13cc0b4435aa1287ef0b
3
+ metadata.gz: 526652cdb899fa7a93b738a96cdbaf3bd4253696
4
+ data.tar.gz: 72c0a8515d8ff04ad5883a2df941d12f73e6042e
5
5
  SHA512:
6
- metadata.gz: 07e33ccaab4ae5eac1e0115481dae4eb60fa4eec50fd23fa3c235128f7f70a130cb6fa42b0c40a75edcc338f35451f2a12e43cccd725ef1a58cd043f129f6153
7
- data.tar.gz: 4e5686646cbc15194ff4b556165a4a7366fc50700b61e1516305b6862d2f3c3e5b58a66b76434e38ed552c3b1379fed688b24561e6cc63f54f1ec44013ddfc3e
6
+ metadata.gz: 20e1b6d5258a55c78e9ba98f64dfb4c307aca056937f5c2f3b50a30cccedc85f9ded4c0f29186a7d9c1ef6936bbd59c63870abdc4b3c073175fd27312ba10e67
7
+ data.tar.gz: d1abe2c401395bb8e05de03c1d681a5c7848d9fe1be9f1e1e06120c3977b17de7c99b2770fd7cb9e0e83bf965bdb3d4ea03fdccd6140c95020d37830d8f27dfb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.2.22
1
+ 7.2.23
@@ -87,10 +87,11 @@ module Gitlab
87
87
  ).first
88
88
  end
89
89
 
90
- # Get commits between two refs
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 SHA arguments.
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
- walker.push(to)
275
- walker.hide(from)
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.22
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: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-linguist