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 /src/diff_output.c | |
parent | 691776213947e59a3928aab09e97a64b65e990ab (diff) | |
download | libgit2-2f8d30becb4801d869188d2d46ca1512843e8698.tar.gz |
Deploy GIT_DIFF_OPTIONS_INIT
Diffstat (limited to 'src/diff_output.c')
-rw-r--r-- | src/diff_output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diff_output.c b/src/diff_output.c index e137fd0f2..6316bfa1e 100644 --- a/src/diff_output.c +++ b/src/diff_output.c @@ -1266,6 +1266,9 @@ int git_diff_blobs( git_diff_delta delta; git_diff_patch patch; + if (!git_diff__opts_has_valid_version(options)) + return -1; + if (options && (options->flags & GIT_DIFF_REVERSE)) { git_blob *swap = old_blob; old_blob = new_blob; |