[libgit2-glib] Copy similarity metrics when copying merge options



commit e1916df3dbabdcc2e7a1377e411a41d955b1d97b
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Thu Aug 13 18:59:45 2015 +0200

    Copy similarity metrics when copying merge options

 libgit2-glib/ggit-merge-options.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgit2-glib/ggit-merge-options.c b/libgit2-glib/ggit-merge-options.c
index 21b0747..5d6ece4 100644
--- a/libgit2-glib/ggit-merge-options.c
+++ b/libgit2-glib/ggit-merge-options.c
@@ -62,6 +62,9 @@ ggit_merge_options_copy (GgitMergeOptions *merge_options)
        new_merge_options = g_slice_new0 (GgitMergeOptions);
        new_merge_options->merge_options = merge_options->merge_options;
 
+       new_merge_options->merge_options.metric = NULL;
+       ggit_merge_options_set_similarity_metric (new_merge_options, merge_options->metric);
+
        return new_merge_options;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]