gollum-rugged_adapter 0.99.2 → 0.99.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugged_adapter/git_layer_rugged.rb +4 -2
- data/lib/rugged_adapter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fccaae999b3b1730aa469a58eb2835fbafc1808f59297753048614075da4569a
|
4
|
+
data.tar.gz: 1e3e56795ad845bce602c85d6ce20d8ddfda86e7685edcb289aefd0e69d9b5ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 572f6127991b013e95f2c54eac7c62606afa491bdf30045d98341e8755b5e11d6a1822227153f2238972f753e50dbadf82817d13bfcc3df9d5ccd774bdaee62d
|
7
|
+
data.tar.gz: 6da3dbf8c4b59532a59491f3664843c5aea36d185ff648b588c8fa7287cbcad5d7c8349b97dfd9a96df9a2f0ff6706582bbbbb0c5da045ec01328ae41089c8a8
|
@@ -346,6 +346,7 @@ module Gollum
|
|
346
346
|
skipped = 0
|
347
347
|
current_path = options[:path].dup if options[:path]
|
348
348
|
current_path = nil if current_path == ''
|
349
|
+
renamed_path = current_path.dup
|
349
350
|
track_pathnames = true if current_path && options[:follow]
|
350
351
|
limit = options[:limit].to_i
|
351
352
|
offset = options[:offset].to_i
|
@@ -358,12 +359,13 @@ module Gollum
|
|
358
359
|
# Skip merge commits
|
359
360
|
next if c.parents.length > 1
|
360
361
|
end
|
361
|
-
|
362
362
|
if !current_path || commit_touches_path?(c, current_path, options[:follow], walker)
|
363
363
|
# This is a commit we care about, unless we haven't skipped enough
|
364
364
|
# yet
|
365
365
|
skipped += 1
|
366
|
-
|
366
|
+
|
367
|
+
commits.push(Gollum::Git::Commit.new(c, track_pathnames ? renamed_path : nil)) if skipped > offset
|
368
|
+
renamed_path = current_path.dup
|
367
369
|
end
|
368
370
|
end
|
369
371
|
walker.reset
|