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

Function generate_id_list

builtin/patch-id.c:180–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180static void generate_id_list(int stable, int verbatim)
181{
182 struct object_id oid, n, result;
183 size_t patchlen;
184 struct strbuf line_buf = STRBUF_INIT;
185
186 oidclr(&oid, the_repository->hash_algo);
187 while (!feof(stdin)) {
188 patchlen = get_one_patchid(&n, &result, &line_buf, stable, verbatim);
189 flush_current_id(patchlen, &oid, &result);
190 oidcpy(&oid, &n);
191 }
192 strbuf_release(&line_buf);
193}
194
195static const char *const patch_id_usage[] = {
196 N_("git patch-id [--stable | --unstable | --verbatim]"), NULL

Callers 1

cmd_patch_idFunction · 0.85

Calls 5

oidclrFunction · 0.85
get_one_patchidFunction · 0.85
flush_current_idFunction · 0.85
oidcpyFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected