X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=9113bbe4889d71e824348edcb920110598db18d2;hb=3cd474599f1ede41863c523ddf76c94941b08164;hp=e958a7c3dfbb3ff76410dc83e47d0ffa950af9ea;hpb=54ed6a98fda3765a6ffcac870f79528a48b4c07f;p=git.git diff --git a/commit.h b/commit.h index e958a7c3d..9113bbe48 100644 --- a/commit.h +++ b/commit.h @@ -28,6 +28,7 @@ extern const char *commit_type; extern struct decoration name_decoration; struct name_decoration { struct name_decoration *next; + int type; char name[1]; }; @@ -40,6 +41,9 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size); int parse_commit(struct commit *item); +/* Find beginning and length of commit subject. */ +int find_commit_subject(const char *commit_buffer, const char **subject); + struct commit_list * commit_list_insert(struct commit *item, struct commit_list **list_p); unsigned commit_list_count(const struct commit_list *l); struct commit_list * insert_by_date(struct commit *item, struct commit_list **list);