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