Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753811AbZI3VHn (ORCPT ); Wed, 30 Sep 2009 17:07:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752001AbZI3VHm (ORCPT ); Wed, 30 Sep 2009 17:07:42 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:38429 "EHLO caffeine.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899AbZI3VHm (ORCPT ); Wed, 30 Sep 2009 17:07:42 -0400 Date: Wed, 30 Sep 2009 17:07:46 -0400 To: Jakub Narebski Cc: Alejandro Riveira =?utf-8?Q?Fern=C3=A1ndez?= , Randy Dunlap , Andy , linux-kernel@vger.kernel.org, git@vger.kernel.org Subject: Re: How can I download a git commit as a diff patch? Message-ID: <20090930210745.GC22159@csclub.uwaterloo.ca> References: <20090930154410.GA31502@thumper2> <20090930202527.GB22159@csclub.uwaterloo.ca> <200909302240.17729.jnareb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200909302240.17729.jnareb@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1183 Lines: 29 On Wed, Sep 30, 2009 at 10:40:16PM +0200, Jakub Narebski wrote: > You can specify parent explicitely: "git diff ^1 " for diff > to first parent, e.g. "git diff HEAD^ HEAD". > > Just so you know that this single diff is not enough to redo a merge. > It is only partial information. Yes certainly in some cases. Often you can pick specific patches and a few patches they depend on to try and fix something, but for bigger changes it doesn't work. I am actually surprised it has been this long before I ever saw one of these combined diff's. I must have been lucky so far. > BTW. there is also "git diff-tree -m ") to show diff to *all* > parents at once: > > -m By default, `git-diff-tree --stdin` does not show differences for > merge commits. With this flag, it shows differences to that commit > from all of its parents. See also `-c`. I will have to try that one out. -- Len Sorensen -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/