OSDN Git Service

Add git diff support at gitdll
[tortoisegit/TortoiseGitJp.git] / ext / gitdll / gitdll.h
index 2bac468..2053fc4 100644 (file)
@@ -31,8 +31,8 @@ typedef unsigned char GIT_HASH[GIT_HASH_SIZE];
 typedef unsigned int  GIT_HANDLE;\r
 typedef unsigned int  GIT_LOG;\r
 \r
 typedef unsigned int  GIT_HANDLE;\r
 typedef unsigned int  GIT_LOG;\r
 \r
-typedef unsigned int  GIT_DIFF;\r
-typedef unsigned int  GIT_FILE;\r
+typedef unsigned int GIT_DIFF;\r
+typedef unsigned int GIT_FILE;\r
 \r
 struct GIT_COMMIT_AUTHOR\r
 {\r
 \r
 struct GIT_COMMIT_AUTHOR\r
 {\r
@@ -103,7 +103,9 @@ GITDLL_API int git_get_commit_from_hash(GIT_COMMIT *commit, GIT_HASH hash);
 GITDLL_API int git_parse_commit(GIT_COMMIT *commit);\r
 GITDLL_API int git_free_commit(GIT_COMMIT *commit);\r
 \r
 GITDLL_API int git_parse_commit(GIT_COMMIT *commit);\r
 GITDLL_API int git_free_commit(GIT_COMMIT *commit);\r
 \r
-GITDLL_API int git_get_diff(GIT_COMMIT *commit, GIT_DIFF *diff);\r
+GITDLL_API int git_open_diff(GIT_DIFF *diff, char * arg);\r
+GITDLL_API int git_diff(GIT_DIFF diff, GIT_HASH hash1,GIT_HASH hash2);\r
+GITDLL_API int git_close_diff(GIT_DIFF diff);\r
 \r
 GITDLL_API int git_get_diff_firstfile(GIT_DIFF diff, GIT_FILE * file);\r
 GITDLL_API int git_get_diff_nextfile(GIT_DIFF diff, GIT_FILE *file);\r
 \r
 GITDLL_API int git_get_diff_firstfile(GIT_DIFF diff, GIT_FILE * file);\r
 GITDLL_API int git_get_diff_nextfile(GIT_DIFF diff, GIT_FILE *file);\r