From: Linus Torvalds Subject: Re: being nice to patch(1) Date: Mon, 2 Jul 2007 14:40:36 -0700 (PDT) Message-ID: References: <20070702125450.28228edd.akpm@linux-foundation.org> <20070702142557.eba61ccd.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Cc: git@vger.kernel.org, quilt-dev@nongnu.org To: Andrew Morton X-From: git-owner@vger.kernel.org Mon Jul 02 23:41:37 2007 connect(): Connection refused Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1I5TeF-0000Ey-KH for gcvg-git@gmane.org; Mon, 02 Jul 2007 23:41:31 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755603AbXGBVl2 (ORCPT ); Mon, 2 Jul 2007 17:41:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755484AbXGBVl2 (ORCPT ); Mon, 2 Jul 2007 17:41:28 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:52509 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755454AbXGBVl2 (ORCPT ); Mon, 2 Jul 2007 17:41:28 -0400 Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [207.189.120.55]) by smtp2.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id l62LefiL009435 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Jul 2007 14:40:42 -0700 Received: from localhost (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id l62LeaVZ012785; Mon, 2 Jul 2007 14:40:36 -0700 In-Reply-To: <20070702142557.eba61ccd.akpm@linux-foundation.org> X-Spam-Status: No, hits=-2.641 required=5 tests=AWL,BAYES_00 X-Spam-Checker-Version: SpamAssassin 3.1.0-osdl_revision__1.12__ X-MIMEDefang-Filter: osdl$Revision: 1.181 $ X-Scanned-By: MIMEDefang 2.53 on 207.189.120.14 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, 2 Jul 2007, Andrew Morton wrote: > > Thing is, changelog-followed-by-diff is a fairly standard format used by > quilt and other such toys. Sure. And if a tool ends up eating the changelog as a diff, then that tool is broken. I really do think that this is a "patch" bug - I really don't think that that was a valid traditional diff with the four spaces at the head of the line. Of course, if the changelog-followed-by-diff doesn't have any indentation or escaping at all, the changelog entry itself *could* actually have a real unified diff in it, and the tool would be unable to tell where the actual patch starts. But at least "git show" and friends indent the changelog on purpose, exactly so that there is never any chance that there could be any real ambiguity, and this really was a "patch" bug as far as I can tell. Happily, one that is easy to work around, by just telling patch to always consider the patch a unified diff. Linus