{"id":20982409,"url":"https://github.com/juliaaplavin/gitfilterrepo.jl","last_synced_at":"2026-05-18T13:05:02.759Z","repository":{"id":238906056,"uuid":"759481674","full_name":"JuliaAPlavin/GitFilterRepo.jl","owner":"JuliaAPlavin","description":"Julia wrapper for git-filter-repo tool for advanced Git history rewriting and repository manipulation.","archived":false,"fork":false,"pushed_at":"2025-03-16T12:17:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T22:45:24.610Z","etag":null,"topics":["git","history-rewriting","repository-tools","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JuliaAPlavin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-18T17:57:27.000Z","updated_at":"2025-07-05T21:05:50.000Z","dependencies_parsed_at":"2024-05-08T20:12:13.176Z","dependency_job_id":null,"html_url":"https://github.com/JuliaAPlavin/GitFilterRepo.jl","commit_stats":null,"previous_names":["juliaaplavin/gitfilterrepo.jl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JuliaAPlavin/GitFilterRepo.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaAPlavin%2FGitFilterRepo.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaAPlavin%2FGitFilterRepo.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaAPlavin%2FGitFilterRepo.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaAPlavin%2FGitFilterRepo.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaAPlavin","download_url":"https://codeload.github.com/JuliaAPlavin/GitFilterRepo.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaAPlavin%2FGitFilterRepo.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33178741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","history-rewriting","repository-tools","wrapper"],"created_at":"2024-11-19T05:45:30.307Z","updated_at":"2026-05-18T13:05:02.749Z","avatar_url":"https://github.com/JuliaAPlavin.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitFilterRepo.jl\n\nJulia wrapper around [git-filter-repo](https://github.com/newren/git-filter-repo), a tool for rewriting Git repository history. It's the recommended replacement for `git filter-branch`: fast, scriptable, and safe. Common use cases include removing large files from history, rewriting author information, renaming paths, and editing commit messages across an entire repository.\n\nThis package provides both the raw `git-filter-repo` Python API and convenience Julia wrappers on top of it. No additional setup is required after installation: the Python module gets automatically downloaded using the `Artifacts` system.\n\n# API\n\nThe package exposes callback types for different kinds of history rewriting: `CommitCallback`, `BlobCallback`, `FilenameCallback`, `MessageCallback`, `EmailCallback`, `NameCallback`, `TagCallback`, and others. Each can be used with `RepoFilter` to process the repository. See the [upstream documentation](https://github.com/newren/git-filter-repo) for the full reference on the underlying Python API.\n\n# Examples\n\n```julia\nimport GitFilterRepo as GFR\n```\n\nGather all commit messages (raw API):\n\n```julia\noptions = GFR.FilteringOptions.default_options()\ncommits = []\nrfilter = GFR.RepoFilter(options; commit_callback=(commit, meta) -\u003e push!(commits, commit))\nrfilter.run()\n[c.message for c in commits]\n```\n\nRename files across the entire history:\n\n```julia\nGFR.RepoFilter(GFR.FilenameCallback) do filename\n    replace(filename, \"old/path\" =\u003e \"new/path\")\nend.run()\n```\n\nTruncate all commit dates to the year (date fields are automatically converted to/from Julia `DateTime`):\n\n```julia\nusing Dates\n\nGFR.RepoFilter(GFR.CommitCallback) do commit, meta\n    commit.author_date = trunc(commit.author_date, Year)\n    commit.committer_date = trunc(commit.committer_date, Year)\nend.run()\n```\n\nPrefix all commit messages:\n\n```julia\nGFR.RepoFilter(GFR.MessageCallback) do message\n    \"chore: \" * message\nend.run()\n```\n\n# Utilities\n\n`clone_process_push` provides a complete clone → filter → push workflow. It clones a source repo into a temp directory, runs your filtering function, then pushes to a destination (with a dry-run confirmation step):\n\n```julia\nGFR.clone_process_push(; source=\"git@github.com:user/old-repo.git\", destination=\"git@github.com:user/new-repo.git\") do\n    GFR.RepoFilter(GFR.CommitCallback) do commit, meta\n        commit.author_email = \"new@email.com\"\n    end.run()\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaaplavin%2Fgitfilterrepo.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliaaplavin%2Fgitfilterrepo.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaaplavin%2Fgitfilterrepo.jl/lists"}