Module | Diff::LCS::Ldiff |
In: |
lib/diff/lcs/ldiff.rb
|
ldiff [options] oldfile newfile
-c: | Displays a context diff with 3 lines of context. |
-C [LINES], —context [LINES]: | Displays a context diff with LINES lines of context. Default 3 lines. |
-u: | Displays a unified diff with 3 lines of context. |
-U [LINES], —unified [LINES]: | Displays a unified diff with LINES lines of context. Default 3 lines. |
-e: | Creates an ‘ed’ script to change oldfile to newfile. |
-f: | Creates an ‘ed’ script to change oldfile to newfile in reverse order. |
-a, —text: | Treats the files as text and compares them line-by-line, even if they do not seem to be text. |
—binary: | Treats the files as binary. |
-q, —brief: | Reports only whether or not the files differ, not the details. |
—help: | Shows the command-line help. |
—version: | Shows the version of Diff::LCS. |
By default, runs produces an "old-style" diff, with output like UNIX diff.
Copyright © 2004 Austin Ziegler
Part of Diff::LCS <http://rubyforge.org/projects/ruwiki/> Austin Ziegler <diff-lcs@halostatue.ca>
This program is free software. It may be redistributed and/or modified under the terms of the GPL version 2 (or later), the Perl Artistic licence, or the Ruby licence.
BANNER | = | <<-COPYRIGHT ldiff #{Diff::LCS::VERSION} Copyright © 2004 Austin Ziegler Part of Diff::LCS. http://rubyforge.org/projects/ruwiki/ Austin Ziegler <diff-lcs@halostatue.ca> This program is free software. It may be redistributed and/or modified under the terms of the GPL version 2 (or later), the Perl Artistic licence, or the Ruby licence. $Id: ldiff.rb,v 1.1 2004/09/26 01:37:49 austin Exp $ COPYRIGHT |