git-filter-branch 中哪些过滤器可以一起使用?

Which filters can be used together in git-filter-branch?

git-filter-branch--env-filter--tree-filter--index-filter--parent-filter--msg-filter--commit-filter--tag-name-filter,等等

所有这些都可以一起使用,还是有些互斥?比如我想调整索引,改变提交者,我可以在同一个运行上使用--index-filter--env-filter吗?

它们实际上可以一起使用。唯一不允许的是尝试将 --prune-empty 都设置为 --commit-filter (因为 --prune-empty 已实现 as 一个提交过滤器,特别是 git_commit_non_empty_tree "$@").

的过滤器