| 1790 | } |
| 1791 | |
| 1792 | static void set_connectivity_errors(struct command *commands, |
| 1793 | struct shallow_info *si) |
| 1794 | { |
| 1795 | struct command *cmd; |
| 1796 | |
| 1797 | for (cmd = commands; cmd; cmd = cmd->next) { |
| 1798 | struct command *singleton = cmd; |
| 1799 | struct check_connected_options opt = CHECK_CONNECTED_INIT; |
| 1800 | |
| 1801 | if (shallow_update && si->shallow_ref[cmd->index]) |
| 1802 | /* to be checked in update_shallow_ref() */ |
| 1803 | continue; |
| 1804 | |
| 1805 | opt.env = tmp_objdir_env(tmp_objdir); |
| 1806 | if (!check_connected(command_singleton_iterator, &singleton, |
| 1807 | &opt)) |
| 1808 | continue; |
| 1809 | |
| 1810 | cmd->error_string = "missing necessary objects"; |
| 1811 | } |
| 1812 | } |
| 1813 | |
| 1814 | struct iterate_data { |
| 1815 | struct command *cmds; |
no test coverage detected