Max Bernhardt <Max.Bernhardt@vodafone.com>


Patch
r852672

r852672 | maxb | 2005-01-05 15:56:01 +0000 (Wed, 05 Jan 2005)

Fix issue 2180: Add option "svnlook diff --no-diff-added"

Patch by: Max Bernhardt <Max.Bernhardt@vodafone.com>

* subversion/svnlook/main.c
  (option enumeration): Add svnlook__no_diff_added.
  (options_table): Add no-diff-added option.
  (cmd_table): Add svnlook__no_diff_added to diff subcommand.
  (svnlook_opt_state): Add svn_boolean_t no_diff_added.
  (svnlook_ctxt_t): Add svn_boolean_t no_diff_added.
  (print_diff_tree): New svn_boolean_t no_diff_added argument.
    Change if statement that allows the diff to happen
    to include no_diff_added.
    Change all recursive calls.
  (do_diff): Pass svnlook_ctxt_t->no_diff_added to print_diff_tree.
  (get_ctxt_baton): Copy no_diff_added to context baton.
  (main): Set no_diff_added option.

* tools/hook-scripts/commit-email.pl
  (main): Add new option variable $no_diff_added to disable diffs
    of added files.