Show More
@@ -98,7 +98,8 b" impl<'a> Index<'a> {" | |||||
98 | let end = start + INDEX_ENTRY_SIZE; |
|
98 | let end = start + INDEX_ENTRY_SIZE; | |
99 | let bytes = &self.bytes[start..end]; |
|
99 | let bytes = &self.bytes[start..end]; | |
100 |
|
100 | |||
101 | // See IndexEntry for an explanation of this override. |
|
101 | // Override the offset of the first revision as its bytes are used | |
|
102 | // for the index's metadata (saving space because it is always 0) | |||
102 | let offset_override = match rev { |
|
103 | let offset_override = match rev { | |
103 | 0 => Some(0), |
|
104 | 0 => Some(0), | |
104 | _ => None, |
|
105 | _ => None, |
General Comments 0
You need to be logged in to leave comments.
Login now