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

Re: diff display



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

--
Ron Johnson, Jr.
Jefferson LA  USA

"Do not bite at the bait of pleasure till you know there is no
hook beneath it."  -- Thomas Jefferson


Reply to: