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

Function intend_to_amend

sequencer.c:3780–3790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3778}
3779
3780static int intend_to_amend(void)
3781{
3782 struct object_id head;
3783 char *p;
3784
3785 if (repo_get_oid(the_repository, "HEAD", &head))
3786 return error(_("cannot read HEAD"));
3787
3788 p = oid_to_hex(&head);
3789 return write_message(p, strlen(p), rebase_path_amend(), 1);
3790}
3791
3792static int error_with_patch(struct repository *r,
3793 struct commit *commit,

Callers 2

error_with_patchFunction · 0.85
pick_one_commitFunction · 0.85

Calls 4

repo_get_oidFunction · 0.85
errorFunction · 0.85
oid_to_hexFunction · 0.85
write_messageFunction · 0.85

Tested by

no test coverage detected