Check if a change has content bytes. Some changes may have empty content sections (e.g., metadata-only changes). # Arguments `hash` - The content hash of the change # Returns `true` if the change exists and has non-empty content.
(&self, hash: &Hash)
| 130 | /// |
| 131 | /// `true` if the change exists and has non-empty content. |
| 132 | fn has_contents(&self, hash: &Hash) -> bool { |
| 133 | self.get_change(hash) |
| 134 | .map(|c| !c.contents.is_empty()) |
| 135 | .unwrap_or(false) |
| 136 | } |
| 137 | |
| 138 | /// Read content bytes for a span. |
| 139 | /// |
nothing calls this directly
no test coverage detected