Skip to content

FR: Better compatibility with git filter-repo and/or bfg repo-cleaner #9252

@nickchomey

Description

@nickchomey

Is your feature request related to a problem? Please describe.
Prior to jj, I would sometimes use git filter-repo or BFG Repo Cleaner to remove large files/blobs or particular unwanted files that snuck into the git history. (heres some equivalent commands for both: https://github.com/newren/git-filter-repo/blob/main/Documentation/converting-from-bfg-repo-cleaner.md#cheat-sheet-conversion-of-examples-from-bfg)

When I use this, it often results in the colocated jj repo breaking. The only solution seems to be to init a new jj repo, but that then loses all of the jj oplog, evolog megamerges etc...

Describe the solution you'd like
I'd like for there to be some sort of command, or at least documentation, for safely using filter-repo/bfg

Describe alternatives you've considered
It was suggested to try jj debug reindex but I didnt succeed with that.

Additional context
It is entirely probable that there's user error - I don't know nearly enough about the internals of git and jj repos to really be able to use these things confidently, let alone repair issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions