introduce notes-cache interface
[gitweb.git] / commit.h
index 2c0742b721fe1d4d78a7a63ed1c2ee1cf9c96ab8..2b7fd89dfd047968aa3e7c927a6c20e506a976de 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -74,7 +74,6 @@ struct pretty_print_context
        struct reflog_walk_info *reflog_info;
 };
 
-extern int non_ascii(int);
 extern int has_non_ascii(const char *text);
 struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
 extern char *reencode_commit_message(const struct commit *commit,
@@ -159,4 +158,8 @@ static inline int single_parent(struct commit *commit)
 
 struct commit_list *reduce_heads(struct commit_list *heads);
 
+extern int commit_tree(const char *msg, unsigned char *tree,
+               struct commit_list *parents, unsigned char *ret,
+               const char *author);
+
 #endif /* COMMIT_H */