X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=009b113e5bb5d04bdfb116897cc17dc5f5a2fa9c;hb=26e94af0ba2f35438bab4a88caa4a16f5e056bac;hp=12d100b8b6fcd092f3a6886a75c720011ef1b7dc;hpb=634b29d2705af2e05d593b75ade2be64033468a5;p=git.git diff --git a/commit.h b/commit.h index 12d100b8b..009b113e5 100644 --- a/commit.h +++ b/commit.h @@ -38,6 +38,13 @@ struct commit *lookup_commit_reference_gently(const unsigned char *sha1, int quiet); struct commit *lookup_commit_reference_by_name(const char *name); +/* + * Look up object named by "sha1", dereference tag as necessary, + * get a commit and return it. If "sha1" does not dereference to + * a commit, use ref_name to report an error and die. + */ +struct commit *lookup_commit_or_die(const unsigned char *sha1, const char *ref_name); + int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size); int parse_commit(struct commit *item); @@ -126,6 +133,7 @@ struct commit *pop_most_recent_commit(struct commit_list **list, struct commit *pop_commit(struct commit_list **stack); void clear_commit_marks(struct commit *commit, unsigned int mark); +void clear_commit_marks_for_object_array(struct object_array *a, unsigned mark); /* * Performs an in-place topological sort of list supplied.