Full-chain view membership with Git origins, loaded once per run and refreshed with this run's introductions.
(
&mut self,
repo: &Repository,
target_view: &str,
)
| 915 | /// Full-chain view membership with Git origins, loaded once per run and |
| 916 | /// refreshed with this run's introductions. |
| 917 | fn origins_for( |
| 918 | &mut self, |
| 919 | repo: &Repository, |
| 920 | target_view: &str, |
| 921 | ) -> CliResult<Vec<(ContentHash, Option<String>)>> { |
| 922 | if self.member_origins.is_none() { |
| 923 | self.member_origins = Some( |
| 924 | repo.full_chain_member_origins(target_view) |
| 925 | .map_err(|e| CliError::Internal(e.into()))?, |
| 926 | ); |
| 927 | } |
| 928 | Ok(self.member_origins.as_ref().expect("loaded above").clone()) |
| 929 | } |
| 930 | |
| 931 | /// Changes in `target_view` (full ancestor chain included) that are NOT |
| 932 | /// part of `sha`'s interpreted closure — the sibling lineages that must |
no test coverage detected