X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=commit.h;h=9113bbe4889d71e824348edcb920110598db18d2;hb=9edb8a0f7b3e2ca06b360abce2e2aaa2b5760a68;hp=e958a7c3dfbb3ff76410dc83e47d0ffa950af9ea;hpb=8718e875080767f2c8d06c55c3fb5a6dddf0e5a0;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);