* Check that checking out ce->sha1 in subdir ce->name is not * going to overwrite any working files. */
| 2307 | * going to overwrite any working files. |
| 2308 | */ |
| 2309 | static int verify_clean_submodule(const char *old_sha1, |
| 2310 | const struct cache_entry *ce, |
| 2311 | struct unpack_trees_options *o) |
| 2312 | { |
| 2313 | if (!submodule_from_ce(ce)) |
| 2314 | return 0; |
| 2315 | |
| 2316 | return check_submodule_move_head(ce, old_sha1, |
| 2317 | oid_to_hex(&ce->oid), o); |
| 2318 | } |
| 2319 | |
| 2320 | static int verify_clean_subdirectory(const struct cache_entry *ce, |
| 2321 | struct unpack_trees_options *o) |
no test coverage detected