| 3778 | } |
| 3779 | |
| 3780 | static 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 | |
| 3792 | static int error_with_patch(struct repository *r, |
| 3793 | struct commit *commit, |
no test coverage detected