From 2c657b3a1d28438ae62f29f9acf6e073b8f7b9ee Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 28 Mar 2016 03:00:33 +0200 Subject: [PATCH] libgit 2.7.4 Signed-off-by: Sven Strickroth --- ext/build/libgit.vcxproj | 17 ++++++++++++++-- ext/build/libgit.vcxproj.filters | 42 +++++++++++++++++++++++++++++++++++++--- ext/gitdll/gitdll.c | 6 +++--- ext/tgit | 2 +- 4 files changed, 58 insertions(+), 9 deletions(-) diff --git a/ext/build/libgit.vcxproj b/ext/build/libgit.vcxproj index 29b7c1f78..3d6a59fbe 100644 --- a/ext/build/libgit.vcxproj +++ b/ext/build/libgit.vcxproj @@ -46,12 +46,16 @@ + + - + + $(IntDir)BuildIn%(Filename).obj + @@ -71,7 +75,6 @@ - @@ -169,8 +172,10 @@ + + @@ -193,9 +198,11 @@ + + @@ -214,6 +221,7 @@ + @@ -420,8 +428,10 @@ + + @@ -437,8 +447,10 @@ + + @@ -451,6 +463,7 @@ + diff --git a/ext/build/libgit.vcxproj.filters b/ext/build/libgit.vcxproj.filters index 81acc1bc0..4e7b0a5c4 100644 --- a/ext/build/libgit.vcxproj.filters +++ b/ext/build/libgit.vcxproj.filters @@ -27,6 +27,9 @@ {50d6f856-35ed-4e73-a2d1-ef4c334be249} + + {bb065187-02fc-455a-851f-1f7109cba5ec} + @@ -86,9 +89,6 @@ compat - - compat - git @@ -842,6 +842,27 @@ git\ewah + + BuildIn + + + BuildIn + + + git + + + git + + + git + + + git\refs + + + git + @@ -1165,5 +1186,20 @@ Header Files\ewah + + Header Files + + + Header Files + + + Header Files + + + git\refs + + + Header Files + \ No newline at end of file diff --git a/ext/gitdll/gitdll.c b/ext/gitdll/gitdll.c index e8cc7362e..05271ad27 100644 --- a/ext/gitdll/gitdll.c +++ b/ext/gitdll/gitdll.c @@ -152,7 +152,7 @@ int git_parse_commit(GIT_COMMIT *commit) p= (struct commit *)commit->m_pGitCommit; - memcpy(commit->m_hash,p->object.sha1,GIT_HASH_SIZE); + memcpy(commit->m_hash, p->object.oid.hash, GIT_HASH_SIZE); commit->m_Encode = NULL; commit->m_EncodeSize = 0; @@ -256,7 +256,7 @@ int git_get_commit_next_parent(GIT_COMMIT_LIST *list, GIT_HASH hash) return -1; if(hash) - memcpy(hash, l->item->object.sha1, GIT_HASH_SIZE); + memcpy(hash, l->item->object.oid.hash, GIT_HASH_SIZE); *list = (GIT_COMMIT_LIST *)l->next; return 0; @@ -1021,7 +1021,7 @@ int get_set_config(const char *key, const char *value, CONFIG_TYPE type) if(!config_exclusive_filename) return -1; - ret = git_config_set_multivar_in_file(config_exclusive_filename, key, value, NULL, 0); + ret = git_config_set_multivar_in_file_gently(config_exclusive_filename, key, value, NULL, 0); free(config_exclusive_filename); return ret; } diff --git a/ext/tgit b/ext/tgit index d1543192b..66d6b12f4 160000 --- a/ext/tgit +++ b/ext/tgit @@ -1 +1 @@ -Subproject commit d1543192b1de47638e91f9e85931bff7bfe0c18b +Subproject commit 66d6b12f4ddde3535906dccbf009c29881b81c24 -- 2.11.4.GIT