1 // gitdlltest.cpp : Defines the entry point for the console application.
\r
7 int output(int ret, char * name)
\r
10 printf("Fail \t%s\r\n",name);
\r
12 printf("Success\t%s\r\n",name);
\r
15 int _tmain(int argc, _TCHAR* argv[])
\r
21 memset(&hash,0,sizeof(GIT_HASH));
\r
24 output(ret,"git_init");
\r
25 ret=git_get_sha1("master",hash);
\r
26 output(ret,"git_get_sha1");
\r
27 ret=git_get_sha1("head",hash);
\r
28 output(ret,"git_get_sha1");
\r
29 ret=git_get_commit_from_hash(&commit, hash);
\r
30 output(ret,"git_get_commit_from_hash");
\r