ref: 254e6855efd805fda2826f324169009c8b0a4105
dir: /git.h/
#pragma lib "libgit.a" #pragma src "/sys/src/libgit" typedef struct Gitlog Gitlog; struct Gitlog { char *hash; /* if nil, end of array */ char *author; char *date; char *message; }; /* initialize git system */ int initgit(char* dir); int freegitlogs(Gitlog *logs); /* git commands. files must be relative within repository. The last name must be nil. */ int gitcommit(char *msg, char *file, ...); int gitcommitl(char *msg, char **files); int gitadd(char *file, ...); int gitaddl(char **files); int gitrm(char *file, ...); int gitrml(char **files); int gitlog(Gitlog **logs, int n, char *commit, ...); int gitlogl(Gitlog **logs, int n, char *commit, char **files);