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

Function process_deepen_not

upload-pack.c:1006–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006static int process_deepen_not(const char *line, struct oidset *deepen_not, int *deepen_rev_list)
1007{
1008 const char *arg;
1009 if (skip_prefix(line, "deepen-not ", &arg)) {
1010 int cnt;
1011 char *ref = NULL;
1012 struct object_id oid;
1013 cnt = expand_ref(the_repository, arg, strlen(arg), &oid, &ref);
1014 if (cnt > 1)
1015 die("git upload-pack: ambiguous deepen-not: %s", line);
1016 if (cnt < 1)
1017 die("git upload-pack: deepen-not is not a ref: %s", line);
1018 oidset_insert(deepen_not, &oid);
1019 free(ref);
1020 *deepen_rev_list = 1;
1021 return 1;
1022 }
1023 return 0;
1024}
1025
1026NORETURN __attribute__((format(printf,2,3)))
1027static void send_err_and_die(struct upload_pack_data *data,

Callers 2

receive_needsFunction · 0.85
process_argsFunction · 0.85

Calls 3

expand_refFunction · 0.85
oidset_insertFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected