diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-03-18 13:33:26 +0000 |
---|---|---|
committer | <> | 2015-07-08 14:41:01 +0000 |
commit | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (patch) | |
tree | 98bae10dde41c746c51ae97ec4f879e330415aa7 /tools/diff/diff.c | |
parent | 239dfafe71711b2f4c43d7b90a1228d7bdc5195e (diff) | |
download | subversion-tarball-bb0ef45f7c46b0ae221b26265ef98a768c33f820.tar.gz |
Imported from /home/lorry/working-area/delta_subversion-tarball/subversion-1.8.13.tar.gz.subversion-1.8.13
Diffstat (limited to 'tools/diff/diff.c')
-rw-r--r-- | tools/diff/diff.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/diff/diff.c b/tools/diff/diff.c index d681381..c4b5e9d 100644 --- a/tools/diff/diff.c +++ b/tools/diff/diff.c @@ -89,6 +89,8 @@ int main(int argc, const char *argv[]) options_array = apr_array_make(pool, 0, sizeof(const char *)); + diff_options = svn_diff_file_options_create(pool); + for (i = 1 ; i < argc ; i++) { if (!no_more_options && (argv[i][0] == '-')) @@ -105,6 +107,11 @@ int main(int argc, const char *argv[]) show_c_function = TRUE; continue; } + if (argv[i][1] == 'w' && !argv[i][2]) + { + diff_options->ignore_space = svn_diff_file_ignore_space_all; + continue; + } APR_ARRAY_PUSH(options_array, const char *) = argv[i]; } else @@ -127,8 +134,6 @@ int main(int argc, const char *argv[]) return 2; } - diff_options = svn_diff_file_options_create(pool); - svn_err = svn_diff_file_options_parse(diff_options, options_array, pool); if (svn_err) { |