commit.h (549B)
1 #ifndef GOUT_GIT_COMMIT_H_ 2 #define GOUT_GIT_COMMIT_H_ 3 4 #include <time.h> 5 6 #include "git/constants.h" 7 8 /* A git commit. */ 9 typedef struct GitCommit { 10 char oid[GOUT_OID_MAX_SIZE]; 11 char parentoid[GOUT_OID_MAX_SIZE]; 12 char* summary; 13 char* message; 14 time_t commit_time; 15 int commit_timezone_offset; 16 char* author_name; 17 char* author_email; 18 time_t author_time; 19 int author_timezone_offset; 20 struct GitDelta** deltas; 21 size_t deltas_len; 22 size_t addcount; 23 size_t delcount; 24 size_t filecount; 25 } GitCommit; 26 27 #endif // GOUT_GIT_COMMIT_H_