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

Function read_empty

builtin/merge.c:378–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378static void read_empty(const struct object_id *oid)
379{
380 struct child_process cmd = CHILD_PROCESS_INIT;
381
382 strvec_pushl(&cmd.args, "read-tree", "-m", "-u",
383 empty_tree_oid_hex(the_repository->hash_algo),
384 oid_to_hex(oid), NULL);
385 cmd.git_cmd = 1;
386
387 if (run_command(&cmd))
388 die(_("read-tree failed"));
389}
390
391static void reset_hard(const struct object_id *oid)
392{

Callers 1

cmd_mergeFunction · 0.85

Calls 5

strvec_pushlFunction · 0.85
empty_tree_oid_hexFunction · 0.85
oid_to_hexFunction · 0.85
run_commandFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected