[gnu.emacs] diffs

jeremy@math.lsa.umich.edu (Jeremy Teitelbaum) (12/01/88)

Dear Gnus of the world,

Corrections to programs on the net are generally posted in
a special format with *** and ---, which I have seen
referred to as "context diffs."  Forgive my naivete, but:

1.  How are these produced?
2.  Is there an automatic procedure for incorporating changes
described in this way into files?

Thanks for your help.



--
Jeremy Teitelbaum
Math Dept.
U. of Michigan, Ann Arbor.

teitelbaum@ub.cc.umich.edu     OR     jeremy@math.lsa.umich.edu

bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) (12/01/88)

In article <499@stag.math.lsa.umich.edu> jeremy@math.lsa.umich.edu (Jeremy Teitelbaum) writes:
>1.  How are these [context diffs] produced?

Usually with `diff -rc2`.

>2.  Is there an automatic procedure for incorporating changes
>described in this way into files?

Use Larry Wall's patch(1), available via anonymous FTP from
tut.cis.ohio-state.edu or via uucp from osu-cis, as well as from a lot
of other places.