[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: diff display



Ron Johnson wrote:
On 09/10/08 18:28, gary turner wrote:
Ron Johnson wrote:
On 09/10/08 16:03, Kamaraju S Kusumanchi wrote:
<snip>
The main purpose of diff is to generate a patch which can then be used to
apply/revert changes across two versions of a file.

That would sanely be called "patch", not "diff".

See man patch. diff consists of differences between files, and patch folds those differences back into the original.

Then that should be:

$ patch --gen-diff

$ patch --apply-diff

There is a measure of logic there. Having both is in line with the philosophy of "do one thing, do it well". There are a number of uses for diff where folding back into the original is not a part of the deal—thus, no patch.

cheers,

gary
--
Anyone can make a usable web site. It takes a graphic
designer to make it slow, confusing and painful to use.
begin:vcard
fn:Gary Turner
n:Turner;Gary
org:Gary Turner, Web Developer
adr:;;;;;;USA
email;internet:gary.kk5st@gmail.com
title:Czar
x-mozilla-html:FALSE
url:http://gtwebdev.com/
version:2.1
end:vcard


Reply to: