34 35 36 37 38 39
# File 'lib/eternity/commit.rb', line 34 def with_index index = data['index'] ? Index.read_blob(data['index']) : Index.new yield index ensure index.destroy if index end