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

Function stopped_at_head

sequencer.c:4888–4904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4886}
4887
4888static int stopped_at_head(struct repository *r)
4889{
4890 struct object_id head;
4891 struct commit *commit;
4892 struct commit_message message;
4893
4894 if (repo_get_oid(r, "HEAD", &head) ||
4895 !(commit = lookup_commit(r, &head)) ||
4896 repo_parse_commit(r, commit) || get_message(commit, &message))
4897 fprintf(stderr, _("Stopped at HEAD\n"));
4898 else {
4899 fprintf(stderr, _("Stopped at %s\n"), message.label);
4900 free_message(commit, &message);
4901 }
4902 return 0;
4903
4904}
4905
4906static int reread_todo_if_changed(struct repository *r,
4907 struct todo_list *todo_list,

Callers 1

pick_commitsFunction · 0.85

Calls 5

repo_get_oidFunction · 0.85
lookup_commitFunction · 0.85
repo_parse_commitFunction · 0.85
get_messageFunction · 0.85
free_messageFunction · 0.85

Tested by

no test coverage detected