diff options
author | Ben Straub <bs@github.com> | 2012-11-30 16:31:42 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-30 16:31:42 -0800 |
commit | c7231c45fecf6c0ae91815a82db7e98c94689497 (patch) | |
tree | 33426a5463917d64b1f160f8083f3dfbd4217fe3 /src/diff_output.c | |
parent | 4ec197f3049d203739066e0c2d2c5c39f78fd808 (diff) | |
download | libgit2-c7231c45fecf6c0ae91815a82db7e98c94689497.tar.gz |
Deploy GITERR_CHECK_VERSION
Diffstat (limited to 'src/diff_output.c')
-rw-r--r-- | src/diff_output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/diff_output.c b/src/diff_output.c index 6316bfa1e..b18255d58 100644 --- a/src/diff_output.c +++ b/src/diff_output.c @@ -1266,8 +1266,7 @@ int git_diff_blobs( git_diff_delta delta; git_diff_patch patch; - if (!git_diff__opts_has_valid_version(options)) - return -1; + GITERR_CHECK_VERSION(options, GIT_DIFF_OPTIONS_VERSION, "git_diff_options"); if (options && (options->flags & GIT_DIFF_REVERSE)) { git_blob *swap = old_blob; |