summaryrefslogtreecommitdiff
path: root/tests-clar/diff/diff_helpers.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-29 15:05:04 -0800
committerBen Straub <bs@github.com>2012-11-30 13:12:14 -0800
commit2f8d30becb4801d869188d2d46ca1512843e8698 (patch)
tree603ee4d64529de316e1c83914705e83d46b38cad /tests-clar/diff/diff_helpers.h
parent691776213947e59a3928aab09e97a64b65e990ab (diff)
downloadlibgit2-2f8d30becb4801d869188d2d46ca1512843e8698.tar.gz
Deploy GIT_DIFF_OPTIONS_INIT
Diffstat (limited to 'tests-clar/diff/diff_helpers.h')
-rw-r--r--tests-clar/diff/diff_helpers.h7
1 files changed, 7 insertions, 0 deletions
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));
+}