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

Function patch_id_defined

patch-ids.c:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "patch-ids.h"
7
8static int patch_id_defined(struct commit *commit)
9{
10 /* must be 0 or 1 parents */
11 return !commit->parents || !commit->parents->next;
12}
13
14int commit_patch_id(struct commit *commit, struct diff_options *options,
15 struct object_id *oid, int diff_header_only)

Callers 3

commit_patch_idFunction · 0.85
patch_id_iter_firstFunction · 0.85
add_commit_patch_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected