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

Re: How to remove a commit object?

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 3, 2008, 12:03 UTC
Message-ID
<48E60A02.7080608@viscovery.net>
In-Reply-To
<33f4f4d70810030442l5042fdbfw18f97336c5a331cc@mail.gmail.com>
Klas Lindberg schrieb:
Show 6 quoted lines
> On Thu, Oct 2, 2008 at 5:02 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
>> I assume that you used --subdirectory-filter. This has issues that will be
>> fixed in 1.6.1. You need a current 'master' git (at least b805ef08).
>
> Is there some way to do what I need with git-filter-branch today, or
> must I wait until 1.6.1 is released?

You can remove all occurences of the "--full-history" flag from your /usr/libexec/git-core/git-filter-branch script. This is sufficient for some repositories because this triggers the bug less often. This means that the resulting history may still be incorrect, but chances are higher that it is correct.

Other than that, you can just clone git.git and compile it yourself. It's a simple matter of "make prefix=$HOME/mytempgit install".

-- Hannes
Previous: Klas Lindberg
Message 11 of 11 in “How to remove a commit object?”
  1. Steven GrimmSep 18, 2008
  2. Michael J GruberSep 19, 2008
  3. Klas LindbergOct 2, 2008
  4. Michael J GruberOct 2, 2008
  5. Jakub NarebskiOct 2, 2008
  6. Klas LindbergOct 2, 2008
  7. Michael J GruberOct 2, 2008
  8. Klas LindbergOct 2, 2008
  9. Johannes SixtOct 2, 2008
  10. Klas LindbergOct 3, 2008
  11. Johannes SixtOct 3, 2008

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.