X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit.h;h=30702ca937562c9a7cd830050c97c42cf232b95a;hb=9e48b389990c0201487e58f3bac32734a59a7e89;hp=c24ab210611815938f4d61f662f1c82e4959e61f;hpb=638ccfdf0eeabf3d985426308b2a82db6207ae28;p=git.git diff --git a/commit.h b/commit.h index c24ab210..30702ca9 100644 --- a/commit.h +++ b/commit.h @@ -17,10 +17,13 @@ struct commit { char *buffer; }; +extern int save_commit_buffer; extern const char *commit_type; struct commit *lookup_commit(const unsigned char *sha1); struct commit *lookup_commit_reference(const unsigned char *sha1); +struct commit *lookup_commit_reference_gently(const unsigned char *sha1, + int quiet); int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size); @@ -40,6 +43,7 @@ enum cmit_fmt { CMIT_FMT_DEFAULT = CMIT_FMT_MEDIUM, CMIT_FMT_SHORT, CMIT_FMT_FULL, + CMIT_FMT_ONELINE, }; extern enum cmit_fmt get_commit_format(const char *arg);