From owner-freebsd-hackers Thu Mar 23 00:03:33 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA03699 for hackers-outgoing; Thu, 23 Mar 1995 00:03:33 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id AAA03692 for ; Thu, 23 Mar 1995 00:03:22 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA13102; Thu, 23 Mar 1995 09:02:15 +0100 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id JAA21014; Thu, 23 Mar 1995 09:02:14 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id IAA17467; Thu, 23 Mar 1995 08:58:19 +0100 From: J Wunsch Message-Id: <199503230758.IAA17467@uriah.heep.sax.de> Subject: Re: [Q] best way to submit patches/changes? To: chaos@rivers.oscs.montana.edu (Jason Boerner) Date: Thu, 23 Mar 1995 08:58:19 +0100 (MET) Cc: PVinci@ix.netcom.com, hackers@FreeBSD.org In-Reply-To: from "Jason Boerner" at Mar 23, 95 00:36:14 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1049 Sender: hackers-owner@FreeBSD.org Precedence: bulk As Jason Boerner wrote: > > Dito... If all that you want is a diff output, how should it be generated? cd /usr/src/where/it/lives diff -c file.orig file > /tmp/my.contribu.tion or cd /usr/src diff -c where/the/first/one/lives/file.orig where/the/first/one/lives/file \ > /tmp/my.contribu.tion diff -c where/another/one/lives/file.orig where/another/one/lives/file \ >> /tmp/my.contribu.tion The sequence (first file: .orig, second file: new one) is important to avoid confusion. You can also replace the ``-c'' by a ``-u'' (unified context diff), making the diff smaller. Be sure to specify what version the patch is against. Either ``2.0 RELEASE'', or specify the $Id$ strings of the source files. Telling ``-current as of Foocember 5th'' is too imprecise. (Even ``2.0-950210-SNAP'' is problematically, since the tree has not been tagged for the SNAPs. Yes, i'm guilty of this one, too. :) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)