]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.h
reftable: add blocksource, an abstraction for random access reads
[thirdparty/git.git] / commit.h
index 49c0f503964ec3bb0e682390b0b409b6a76b0924..df42eb434f314bd9cf89e920efdb0fc29a86c4c5 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -167,6 +167,9 @@ const void *detach_commit_buffer(struct commit *, unsigned long *sizep);
 /* Find beginning and length of commit subject. */
 int find_commit_subject(const char *commit_buffer, const char **subject);
 
+/* Return length of the commit subject from commit log message. */
+size_t commit_subject_length(const char *body);
+
 struct commit_list *commit_list_insert(struct commit *item,
                                        struct commit_list **list);
 int commit_list_contains(struct commit *item,