| 142 | } |
| 143 | |
| 144 | inline void resolveMapFileConflictUsingOurs(const std::shared_ptr<Repository>& repository) |
| 145 | { |
| 146 | auto mapPath = repository->getRepositoryRelativePath(GlobalMapModule().getMapName()); |
| 147 | auto index = repository->getIndex(); |
| 148 | |
| 149 | // Remove the conflict state of the map file after save |
| 150 | if (!mapPath.empty() && index->fileIsConflicted(mapPath)) |
| 151 | { |
| 152 | index->resolveByUsingOurs(mapPath); |
| 153 | |
| 154 | auto infoFilePath = getInfoFilePath(mapPath); |
| 155 | |
| 156 | if (!infoFilePath.empty()) |
| 157 | { |
| 158 | index->resolveByUsingOurs(infoFilePath); |
| 159 | } |
| 160 | |
| 161 | index->write(); |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | inline void tryToFinishMerge(const std::shared_ptr<Repository>& repository) |
| 166 | { |
no test coverage detected