diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
commit | cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 (patch) | |
tree | da27775a2161723ef342e91af41a8b51fedef405 /tools/diff/diff.c | |
parent | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (diff) | |
download | subversion-tarball-master.tar.gz |
subversion-1.9.7HEADsubversion-1.9.7master
Diffstat (limited to 'tools/diff/diff.c')
-rw-r--r-- | tools/diff/diff.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/diff/diff.c b/tools/diff/diff.c index c4b5e9d..c69a6d9 100644 --- a/tools/diff/diff.c +++ b/tools/diff/diff.c @@ -43,9 +43,11 @@ do_diff(svn_stream_t *ostream, SVN_ERR(svn_diff_file_diff_2(&diff, original, modified, options, pool)); *has_changes = svn_diff_contains_diffs(diff); - return svn_diff_file_output_unified3(ostream, diff, original, modified, + return svn_diff_file_output_unified4(ostream, diff, original, modified, NULL, NULL, SVN_APR_LOCALE_CHARSET, - NULL, show_c_function, pool); + NULL, show_c_function, + options->context_size, + NULL, NULL, pool); } static void @@ -112,7 +114,16 @@ int main(int argc, const char *argv[]) diff_options->ignore_space = svn_diff_file_ignore_space_all; continue; } + APR_ARRAY_PUSH(options_array, const char *) = argv[i]; + + /* Special case: '-U' takes an argument, so capture the + * next argument in the array. */ + if (argv[i][1] == 'U' && !argv[i][2]) + { + i++; + APR_ARRAY_PUSH(options_array, const char *) = argv[i]; + } } else { |