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