MCPcopy Create free account
hub / github.com/git/git / set_connectivity_errors

Function set_connectivity_errors

builtin/receive-pack.c:1792–1812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1790}
1791
1792static 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
1814struct iterate_data {
1815 struct command *cmds;

Callers 1

execute_commandsFunction · 0.85

Calls 2

tmp_objdir_envFunction · 0.85
check_connectedFunction · 0.85

Tested by

no test coverage detected