From: Matthias Urlichs Subject: Re: Using local trees and cogito Date: Fri, 17 Jun 2005 13:57:28 +0200 Organization: {M:U} IT Consulting Message-ID: References: <9e473391050615193719d81951@mail.gmail.com> <20050616163907.GA26037@delft.aura.cs.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-From: git-owner@vger.kernel.org Fri Jun 17 13:54:06 2005 Return-path: Received: from vger.kernel.org ([12.107.209.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DjFPN-0008Fs-8K for gcvg-git@gmane.org; Fri, 17 Jun 2005 13:53:13 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261222AbVFQL6b (ORCPT ); Fri, 17 Jun 2005 07:58:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261233AbVFQL6b (ORCPT ); Fri, 17 Jun 2005 07:58:31 -0400 Received: from main.gmane.org ([80.91.229.2]:56291 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S261222AbVFQL61 (ORCPT ); Fri, 17 Jun 2005 07:58:27 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DjFOx-0008CD-96 for git@vger.kernel.org; Fri, 17 Jun 2005 13:52:47 +0200 Received: from run.smurf.noris.de ([192.109.102.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2005 13:52:47 +0200 Received: from smurf by run.smurf.noris.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2005 13:52:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: git@vger.kernel.org X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: run.smurf.noris.de User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) X-Face: '&-&kxR\8+Pqalw@VzN\p?]]eIYwRDxvrwEM I use, > > git-diff-cache -R -p HEAD | git-apply --index > > This simple reverse applies the differences between the previously > checked out tree and the branch we just switched to. Ofcourse the > cache/index has to be up to date before we switch between branches. ... except that this method fails to create intermediate dirctories. fatal: unable to create file drivers/media/dvb/dibusb/Kconfig (No such file or directory) Looks like a bug in git-apply. -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de - - Let us endeavor so to live that when we come to die even the undertaker will be sorry. -- Mark Twain, "Pudd'nhead Wilson's Calendar"