Get the recorded content for a tracked file. This method builds a **change filter** that defines the current view's content perspective, then retrieves file content through the raw transaction. Since all edges live in the global GRAPH, the raw transaction sees everything — the change filter handles view isolation. # Arguments `path` - Path to the file (relative to repository root) # Returns
(
&self,
path: P,
)
| 69 | /// let content = repo.get_file_content("src/main.rs")?; |
| 70 | /// ``` |
| 71 | pub fn get_file_content<P: AsRef<Path>>( |
| 72 | &self, |
| 73 | path: P, |
| 74 | ) -> Result<Option<Vec<u8>>, RepositoryError> { |
| 75 | match self.get_materialized_entry_on_view(path, &self.current_view)? { |
| 76 | MaterializedEntry::Absent { .. } => Ok(None), |
| 77 | MaterializedEntry::Present { bytes, .. } => Ok(Some(bytes)), |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | /// Get file content through the canonical view-aware retrieval path. |
| 82 | /// |