From 2f8d30becb4801d869188d2d46ca1512843e8698 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Thu, 29 Nov 2012 15:05:04 -0800 Subject: Deploy GIT_DIFF_OPTIONS_INIT --- tests-clar/diff/diff_helpers.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests-clar/diff/diff_helpers.h') diff --git a/tests-clar/diff/diff_helpers.h b/tests-clar/diff/diff_helpers.h index 12591f63e..0f7c0e4f8 100644 --- a/tests-clar/diff/diff_helpers.h +++ b/tests-clar/diff/diff_helpers.h @@ -48,3 +48,10 @@ extern int diff_foreach_via_iterator( void *data); extern void diff_print(FILE *fp, git_diff_list *diff); + + +GIT_INLINE(void) reset_diff_opts(git_diff_options *opts) +{ + git_diff_options init = GIT_DIFF_OPTIONS_INIT; + memmove(opts, &init, sizeof(init)); +} -- cgit v1.2.1