| 748 | } |
| 749 | |
| 750 | const struct submodule *submodule_from_ce(const struct cache_entry *ce) |
| 751 | { |
| 752 | if (!S_ISGITLINK(ce->ce_mode)) |
| 753 | return NULL; |
| 754 | |
| 755 | if (!should_update_submodules()) |
| 756 | return NULL; |
| 757 | |
| 758 | return submodule_from_path(the_repository, null_oid(the_hash_algo), ce->name); |
| 759 | } |
| 760 | |
| 761 | |
| 762 | struct collect_changed_submodules_cb_data { |
no test coverage detected