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

Function is_head

reflog.c:439–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439static int is_head(const char *refname)
440{
441 const char *stripped_refname;
442 parse_worktree_ref(refname, NULL, NULL, &stripped_refname);
443 return !strcmp(stripped_refname, "HEAD");
444}
445
446void reflog_expiry_prepare(const char *refname,
447 const struct object_id *oid,

Callers 1

reflog_expiry_prepareFunction · 0.85

Calls 1

parse_worktree_refFunction · 0.85

Tested by

no test coverage detected