git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-filter-branch

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 9, 2007, 09:38 UTC
Message-ID
<Pine.LNX.4.64.0708091037220.21857@racer.site>
In-Reply-To
<20070809093051.GA21458@glandium.org>
Hi,
On Thu, 9 Aug 2007, Mike Hommey wrote:
Show 22 quoted lines
> On Thu, Aug 09, 2007 at 10:19:20AM +0100, Johannes Schindelin <Johannes.Schindelin@gmx.de> 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 <options> master
Anyway, I'm off for a few days.

Ciao, Dscho

Previous: Mike Hommey
Message 6 of 6 in “git-filter-branch”
  1. Mike HommeyAug 9, 2007
  2. Johannes SchindelinAug 9, 2007
  3. Mike HommeyAug 9, 2007
  4. Johannes SchindelinAug 9, 2007
  5. Mike HommeyAug 9, 2007
  6. Johannes SchindelinAug 9, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.