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

Function process_args

upload-pack.c:1590–1684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1588}
1589
1590static void process_args(struct packet_reader *request,
1591 struct upload_pack_data *data)
1592{
1593 while (packet_reader_read(request) == PACKET_READ_NORMAL) {
1594 const char *arg = request->line;
1595 const char *p;
1596
1597 /* process want */
1598 if (parse_want(&data->writer, arg, &data->want_obj))
1599 continue;
1600 if (data->allow_ref_in_want &&
1601 parse_want_ref(&data->writer, arg, &data->wanted_refs,
1602 &data->hidden_refs, &data->want_obj))
1603 continue;
1604 /* process have line */
1605 if (parse_have(arg, data))
1606 continue;
1607
1608 /* process args like thin-pack */
1609 if (!strcmp(arg, "thin-pack")) {
1610 data->use_thin_pack = 1;
1611 continue;
1612 }
1613 if (!strcmp(arg, "ofs-delta")) {
1614 data->use_ofs_delta = 1;
1615 continue;
1616 }
1617 if (!strcmp(arg, "no-progress")) {
1618 data->no_progress = 1;
1619 continue;
1620 }
1621 if (!strcmp(arg, "include-tag")) {
1622 data->use_include_tag = 1;
1623 continue;
1624 }
1625 if (!strcmp(arg, "done")) {
1626 data->done = 1;
1627 continue;
1628 }
1629 if (!strcmp(arg, "wait-for-done")) {
1630 data->wait_for_done = 1;
1631 continue;
1632 }
1633
1634 /* Shallow related arguments */
1635 if (process_shallow(arg, &data->shallows))
1636 continue;
1637 if (process_deepen(arg, &data->depth))
1638 continue;
1639 if (process_deepen_since(arg, &data->deepen_since,
1640 &data->deepen_rev_list))
1641 continue;
1642 if (process_deepen_not(arg, &data->deepen_not,
1643 &data->deepen_rev_list))
1644 continue;
1645 if (!strcmp(arg, "deepen-relative")) {
1646 data->deepen_relative = 1;
1647 continue;

Callers 1

upload_pack_v2Function · 0.85

Calls 15

packet_reader_readFunction · 0.85
parse_wantFunction · 0.85
parse_want_refFunction · 0.85
parse_haveFunction · 0.85
process_deepenFunction · 0.85
process_deepen_sinceFunction · 0.85
process_deepen_notFunction · 0.85
send_err_and_dieFunction · 0.85
string_list_splitFunction · 0.85

Tested by

no test coverage detected