From: Matthieu Moy Subject: Re: Let me ask again: How do we import patches from non-git sources? Date: Wed, 06 Jun 2007 19:58:48 +0200 Message-ID: References: <1180017010.21181.2.camel@zealous.synapsedev.com> <1181151454.6086.23.camel@zealous.synapsedev.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git To: Marc Singer X-From: git-owner@vger.kernel.org Wed Jun 06 19:59:24 2007 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 1Hvzn0-00055v-Pd for gcvg-git@gmane.org; Wed, 06 Jun 2007 19:59:23 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755343AbXFFR7Q (ORCPT ); Wed, 6 Jun 2007 13:59:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755057AbXFFR7Q (ORCPT ); Wed, 6 Jun 2007 13:59:16 -0400 Received: from imag.imag.fr ([129.88.30.1]:46277 "EHLO imag.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751272AbXFFR7P (ORCPT ); Wed, 6 Jun 2007 13:59:15 -0400 Received: from mail-veri.imag.fr (mail-veri.imag.fr [129.88.43.52]) by imag.imag.fr (8.13.8/8.13.8) with ESMTP id l56HwmCN014235 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Wed, 6 Jun 2007 19:58:48 +0200 (CEST) Received: from bauges.imag.fr ([129.88.43.5]) by mail-veri.imag.fr with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1HvzmS-0000Y2-Mk; Wed, 06 Jun 2007 19:58:48 +0200 Received: from moy by bauges.imag.fr with local (Exim 4.63) (envelope-from ) id 1HvzmS-0000u2-KF; Wed, 06 Jun 2007 19:58:48 +0200 Mail-Followup-To: Marc Singer , git In-Reply-To: <1181151454.6086.23.camel@zealous.synapsedev.com> (Marc Singer's message of "Wed\, 06 Jun 2007 10\:37\:34 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (imag.imag.fr [129.88.30.1]); Wed, 06 Jun 2007 19:58:49 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact IMAG DMI for more information X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: moy@imag.fr Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Marc Singer writes: > On Thu, 2007-05-24 at 07:30 -0700, Marc Singer wrote: >> It looks like it reduces to something very simple. >> >> Git patches, as generated by git-format-patch, have a header with an >> email address. >> >> Cogito patches, as generated by cg-mkpatch, have no email address in the >> header. Cogito is more or less depreceted now. You should probably use git itself. >> git-am doesn't like the cogito patches. >> >> Is there a way to import patches that did not come from git? Remember >> that we'd like to include the functionality of git-am that adds new >> files to the index. >> >> Cheers. > > I have patches from another source as well and I'd like to be able to > import them even though these aren't from git. You cannot "import" them, because they do not contain the necessary information (commit message and email adress). But you can "apply" them, and then commit manually. Use git-patch (even just "patch" could do) to apply the patch, and commit as usual. -- Matthieu