diff options
author | Ben Straub <bs@github.com> | 2012-11-29 15:05:04 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-30 13:12:14 -0800 |
commit | 2f8d30becb4801d869188d2d46ca1512843e8698 (patch) | |
tree | 603ee4d64529de316e1c83914705e83d46b38cad /tests-clar/diff/diff_helpers.h | |
parent | 691776213947e59a3928aab09e97a64b65e990ab (diff) | |
download | libgit2-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.h | 7 |
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)); +} |