fix index clobbering and tighten some stuff up

This commit is contained in:
Tom Preston-Werner
2010-04-19 10:50:40 -07:00
parent 2b20054d5c
commit 5f037e5e47
6 changed files with 107 additions and 16 deletions
+8 -1
View File
@@ -10,11 +10,18 @@ module Gollum
@blob = nil
end
# Public: The on-disk filename of the file.
#
# Returns the String name.
def name
@blob && @blob.name
end
# Public: The raw contents of the page.
#
# Returns the String data.
def raw_data
@blob.data rescue nil
@blob && @blob.data
end
# Public: The Grit::Commit version of the file.