Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename the GitRuby Mmap class to FileWindow, since it's not really mm…

…ap'ed at

all (except for any OS level caching)
  • Loading branch information...
commit a17e8603006e231316d7bd20f47b6d39dcbe69d6 1 parent 3838109
@js js authored
View
2  grit.gemspec
1 addition, 1 deletion not shown
View
2  lib/grit/git-ruby/internal/mmap.rb → lib/grit/git-ruby/internal/file_window.rb
@@ -12,7 +12,7 @@
module Grit
module GitRuby
module Internal
- class Mmap
+ class FileWindow
def initialize(file, version = 1)
@file = file
@offset = nil
View
4 lib/grit/git-ruby/internal/pack.rb
@@ -11,7 +11,7 @@
require 'zlib'
require 'grit/git-ruby/internal/raw_object'
-require 'grit/git-ruby/internal/mmap'
+require 'grit/git-ruby/internal/file_window'
PACK_SIGNATURE = "PACK"
PACK_IDX_SIGNATURE = "\377tOc"
@@ -66,7 +66,7 @@ def with_idx(index_file = nil)
@version = 1
end
- idx = Mmap.new(idxfile, @version)
+ idx = FileWindow.new(idxfile, @version)
yield idx
idx.unmap
idxfile.close
Please sign in to comment.
Something went wrong with that request. Please try again.