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

Suppressing filter-branch warning

From
DHDaniel Höpfl <daniel@hoepfl.de>
Date
Nov 6, 2020, 09:04 UTC
Message-ID
<20201106090443.GA20407@black.spass-am-geraet.de>
Hello there,

What did you do before the bug happened? (Steps to reproduce your issue) git filter-branch -f --env-filter '' --tag-name-filter cat -- HEAD

What did you expect to happen? (Expected behavior) See below (difference).

What happened instead? (Actual behavior) When using git filter-branch, the following message is shown:

----------8<-----------------------------------------------------
WARNING: git-filter-branch has a glut of gotchas generating mangled history
         rewrites.  Hit Ctrl-C before proceeding to abort, then use an
         alternative filtering tool such as 'git filter-repo'
         (https://github.com/newren/git-filter-repo/) instead.  See the
         filter-branch manual page for more details; to squelch this warning,
         set FILTER_BRANCH_SQUELCH_WARNING=1.
----------8<-----------------------------------------------------
You can suppress this by setting the environment variable shown.
What's different between what you expected and what actually happened?

Normally, when git introduces this kind of change, there is a git config variable that one can set to suppress it. That way one has fine grade control when to suppress it (one repo only...globally).

Anything else you want to add:
-/-

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.29.0 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 compiler info: gnuc: 8.3 libc info: glibc: 2.28 $SHELL (typically, interactive shell): /bin/bash

Next: Junio C Hamano
Message 1 of 5 in “Suppressing filter-branch warning”
  1. Daniel HöpflNov 6, 2020
  2. Junio C HamanoNov 6, 2020
  3. Elijah NewrenNov 6, 2020
  4. Daniel HöpflNov 10, 2020
  5. Johannes SchindelinNov 10, 2020

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.