"Austad, Jay" <austad at marketwatch.com> wrote: > > Ok, I have 2 files, something.c and something-modified.c > > How do I create a patch so the changes in something-modified.c can be > applied to something.c? diff <options> something.c something-modified.c > something.diff I usually create unified diffs (-u option), but lots of people seem to like context diffs (-c). I guess non-GNU diff programs don't understand unified diffs (the stock Solaris one doesn't create them, at least). There are piles of other options, too. -- _ _ _ _ _ ___ _ _ _ ___ _ _ __ Linux: Just do it. / \/ \(_)| ' // ._\ / - \(_)/ ./| ' /(__ \_||_/|_||_|_\\___/ \_-_/|_|\__\|_|_\ __) [ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088 at tc.umn.edu ] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20011105/8e4c87f8/attachment.pgp