logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dwfilter - reformat text with dwdiff for further processing

Author

       G.P. Halkes <dwdiff@ghalkes.nl>

Bugs

       If you think you have found a bug, please  check  that  you  are  using  the  latest  version  of  dwdiff
       <http://os.ghalkes.nl/dwdiff.html>.   When   reporting  bugs,  please  include  a  minimal  example  that
       demonstrates the problem.

Description

dwfilter reformats the text in the old file according to the contents of the new file (or vice versa) and
       subsequently passes the reformated old file and the new file through a secondary filter. It's main use is
       to  allow  visual  diff  programs  such  as  meld and kdiff3 to be used, even though a text file has been
       reformated after editing. A further use is to allow the creation of small patches even when the new  text
       has been reformated. dwfilter uses dwdiff for reformatting.

Name

       dwfilter - reformat text with dwdiff for further processing

Options

-r, --reverse
              Reformat  the  new file based on the contents of the old file instead of the default where the old
              file is reformated based on the contents of the new file.

       dwfilter accepts the following dwdiff options:

              -ddelimiters, --delimiters=delimiters-P, --punctuation-Wwhitespace, --white-space=whitespace-i, --ignore-case-I, --ignore-formatting-Doption, --diff-option=option-Cnum, --context=num-mnum, --match-context=num--aggregate-changes--wdiff-output-Aalgorithm,  --algorithm=algorithm--profile=name, --no-profile

       See the dwdiff manual page for the meaning.

       A single dash (-) as a file can be used to denote standard input. Only one file can be read from standard
       input. To stop dwfilter from interpreting file names that start with a dash as options, one can specify a
       double dash (--) after which dwfilter will interpret any following arguments as files to read.

See Also

dwdiff(1), diff(1), meld(1), kdiff3(1)

Version $VERSION$                                  2018/12/06                                        DWFILTER(1)

Synopsis

dwfilter [OPTIONS] OLDFILENEWFILEPOSTPROCESSOR [POSTPROCESSOROPTIONS]

See Also