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

Re: Bug in git-filter-branch example

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Feb 1, 2010, 12:57 UTC
Message-ID
<4B66CFB9.2060603@viscovery.net>
In-Reply-To
<557ea2711002010348m57aa31fesd1047cbe3f01cb0b@mail.gmail.com>
Ivo Anjo schrieb:
> I've been working on importing my svn repo into git, and while moving
> some things around using git-filter-branch I ran into a bug in the
> example provided on the manpage:

Thanks for the report, but: Examples are just that: examples. IMO, it is OK that there are implicit assumptions (such as that only "common" file names are used in the repo).

Making the example universally applicable would greatly obfuscate the important messages.

> I ended up using git filter-branch to remove the offending file ("if
> all you have is a hammer..."), and re-adding it after the move.

It seems that the example has met its objective: It showed you how to use the hammer, and with your creativity mixed in, it enabled you to use the hammer in new ways.

-- Hannes
Previous: Jeff King
Message 3 of 3 in “Bug in git-filter-branch example”
  1. Ivo AnjoFeb 1, 2010
  2. Jeff KingFeb 1, 2010
  3. Johannes SixtFeb 1, 2010

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.