From owner-freebsd-commit Wed Sep 13 23:16:44 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA24342 for freebsd-commit-outgoing; Wed, 13 Sep 1995 23:16:44 -0700 Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA24329 for cvs-all-outgoing; Wed, 13 Sep 1995 23:16:41 -0700 Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA24315 for cvs-gnu-outgoing; Wed, 13 Sep 1995 23:16:40 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id XAA24288 ; Wed, 13 Sep 1995 23:16:26 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id QAA12138; Thu, 14 Sep 1995 16:10:44 +1000 Date: Thu, 14 Sep 1995 16:10:44 +1000 From: Bruce Evans Message-Id: <199509140610.QAA12138@godzilla.zeta.org.au> To: CVS-commiters@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org, gibbs@freefall.freebsd.org Subject: Re: cvs commit: src/gnu/usr.bin/patch pch.c Sender: commit-owner@FreeBSD.org Precedence: bulk > Modified: gnu/usr.bin/patch pch.c > Log: > Give "Index" specified filenames preference over other filenames specified > in the diff. This makes it so that diffs containing files in different > subdirectories that have the same name not patch the same file. For example > a diff with patches to Makefile, des/Makefile, usr.bin/Makefile would attempt > to patch Makefile three times. This will be useful. I've been avoiding `cvs diff' for preparing bunches of patches to commit for so long that I had forgotten about this problem. Why has patch done the wrong thing here for so long? Perhaps because only cvs doesn't put enough context in the filenames in the diff? :-) Bruce