usinig cvs diff to make a patch

Chuck Robey chuckr at telenix.org
Tue Feb 3 12:10:12 PST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aryeh M. Friedman wrote:
> I use a local cvs repo and I have modified a port and which to submit an
> update for it how do I generate a patch file with cvs (cvs diff seems to
> give a unusable format)?
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"

cvs diff -u gives the unified format (or cvs diff -c for context, get the
pattern?)  Or, copying from the web page
http://www.eyrie.org/~eagle/notes/cvs/basic-usage.html, which shows how to use
the ~/.cvsrc file to make common cvs commands default the way you want them to,
you could put into that file the line "diff -u" so it always gives you the
unified diff format, which just happens to be the easiest for humans to read,
and the format specified in FreeBSD (hint, hint).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmIm9EACgkQz62J6PPcoOnRlQCeIT8vsLZ6LI764WOaTQy72ym4
Tp0AoJ43TIQYsGFz8YYD2ChhMSUU0Wpc
=ta5/
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list