The single-insert domain calls the local single-insert body makes: the dependency closure by default, `--deps=false` skips it (the plain insert path).
(
repo: &Repository,
hash: &atomic_core::types::Merkle,
target: &str,
apply_dependencies: bool,
allow_conflicts: bool,
)
| 1118 | /// the dependency closure by default, `--deps=false` skips it (the |
| 1119 | /// plain insert path). |
| 1120 | fn single_insert( |
| 1121 | repo: &Repository, |
| 1122 | hash: &atomic_core::types::Merkle, |
| 1123 | target: &str, |
| 1124 | apply_dependencies: bool, |
| 1125 | allow_conflicts: bool, |
| 1126 | ) -> Result<atomic_repository::InsertOutcome, atomic_repository::RepositoryError> { |
| 1127 | let options = InsertOptions::default() |
| 1128 | .apply_deps(apply_dependencies) |
| 1129 | .allow_conflict(allow_conflicts) |
| 1130 | .view(target.to_string()); |
| 1131 | if apply_dependencies { |
| 1132 | repo.insert_change_rec(hash, options) |
| 1133 | } else { |
| 1134 | repo.insert_change(hash, options) |
| 1135 | } |
| 1136 | } |
| 1137 | |
| 1138 | pub(crate) fn default_ref() -> RepositoryRef { |
| 1139 | RepositoryRef { |
no test coverage detected