MCPcopy Index your code
hub / github.com/git/git / get_first_undecided

Function get_first_undecided

add-patch.c:1596–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594}
1595
1596static bool get_first_undecided(const struct file_diff *file_diff, size_t *idx)
1597{
1598 for (size_t i = 0; i < file_diff->hunk_nr; i++) {
1599 if (file_diff->hunk[i].use == UNDECIDED_HUNK) {
1600 *idx = i;
1601 return true;
1602 }
1603 }
1604 return false;
1605}
1606
1607static size_t patch_update_file(struct add_p_state *s,
1608 size_t idx,

Callers 1

patch_update_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected