From: Johannes Schindelin Date: Thu, 09 Aug 2007 09:38:09 GMT Subject: Re: git-filter-branch Message-ID: In-Reply-To: <20070809093051.GA21458@glandium.org> Hi, On Thu, 9 Aug 2007, Mike Hommey wrote: > On Thu, Aug 09, 2007 at 10:19:20AM +0100, Johannes Schindelin wrote: > > > In the description in the manpage: > > > Lets you rewrite git revision history by creating a new branch from > > > your current branch, applying custom filters on each revision. > > > (...) > > > The command takes the new branch name as a mandatory argument and the > > > filters as optional arguments > > > > > > And in example: > > > Now, you will get the rewritten history saved in the branch newbranch > > > (your current branch is left untouched). > > > > > > I must say this is a feature that would actually be nice to have... > > > > To compare with the old one? Use reflogs: > > > > git filter-branch --some-option master > > git diff master@{1}..master > > To have, for example, a branch tracking an upstream (svn or whatever) > repository and have a branch based on it, only differing in the fact that > some directories get removed. You can always achieve the same effect by $ git branch new-branch master $ git filter-branch master Anyway, I'm off for a few days. Ciao, Dscho