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)
| 154 | /// |
| 155 | /// `true` if the change exists and has non-empty content. |
| 156 | fn has_contents(&self, hash: &Hash) -> bool { |
| 157 | self.get_change(hash) |
| 158 | .map(|c| !c.contents.is_empty()) |
| 159 | .unwrap_or(false) |
| 160 | } |
| 161 | |
| 162 | /// Read content bytes for a span. |
| 163 | /// |
nothing calls this directly
no test coverage detected