2 # converted from the gitrb project
5 # Matthias Lederhofer <matled@gmx.net>
6 # Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
8 # provides native ruby access to git objects and pack files
29 idx = idx[0] if idx.length == 1
33 len = idx.last - idx.first + idx.exclude_end? ? 0 : 1
40 raise RuntimeError, "invalid index param: #{idx.class}"
45 @offset = offset + len ? len : 1
57 end # rescue LoadError