{"id":37585786,"url":"https://github.com/rainlabs-eu/git-relevant-history","last_synced_at":"2026-01-16T09:46:00.817Z","repository":{"id":41973659,"uuid":"308730359","full_name":"rainlabs-eu/git-relevant-history","owner":"rainlabs-eu","description":"Extract only relevant history from git repo","archived":false,"fork":false,"pushed_at":"2022-09-15T13:43:10.000Z","size":28,"stargazers_count":7,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-20T20:17:36.880Z","etag":null,"topics":["annotate","blame","git","history","rewrite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rainlabs-eu.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}},"created_at":"2020-10-30T19:53:53.000Z","updated_at":"2025-03-14T06:39:15.000Z","dependencies_parsed_at":"2022-08-12T01:10:11.173Z","dependency_job_id":null,"html_url":"https://github.com/rainlabs-eu/git-relevant-history","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rainlabs-eu/git-relevant-history","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlabs-eu%2Fgit-relevant-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlabs-eu%2Fgit-relevant-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlabs-eu%2Fgit-relevant-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlabs-eu%2Fgit-relevant-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainlabs-eu","download_url":"https://codeload.github.com/rainlabs-eu/git-relevant-history/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlabs-eu%2Fgit-relevant-history/sbom","scorecard":{"id":759528,"data":{"date":"2025-08-11","repo":{"name":"github.com/rainlabs-eu/git-relevant-history","commit":"84552324d7cb4790db86282fc61bf98a05b7a4fd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":2,"reason":"Found 4/17 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T22:54:32.238Z","repository_id":41973659,"created_at":"2025-08-22T22:54:32.238Z","updated_at":"2025-08-22T22:54:32.238Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":["annotate","blame","git","history","rewrite"],"created_at":"2026-01-16T09:46:00.721Z","updated_at":"2026-01-16T09:46:00.802Z","avatar_url":"https://github.com/rainlabs-eu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-relevant-history\n\nExtract software component from git repo into a new repo, taking complete relevant history with it.\n\n## Background\n\nWhen software evolves, it is typical for a stable, established software component to be moved out of a git repository to facilitate more comprehensive reuse. One of the pain points of such a move would be losing git history, breaking the possibility of using `git blame` or `git log` to understand what led to the current design.\n\nHistorically git filter-branch was used for such extracting, and https://github.com/newren/git-filter-repo is a much faster alternative recommended by git now. Both tools work on a static list of path patterns to preserve, so file renames in the past are usually \"cut point.\"\n\nThis tool also starts with \"what is subcomponent in the current repo to extract?\" but then analyzes the history of renames for any existing file. Such a list is used to create a list of patterns for `git filter-repo` so that effectively the old repo/component becomes standalone repo with a full history of every file, as long as git --follow catches the rename.\n\nSo from the extracted component perspective, the only history \"lost\" is one that would require manual analysis of commits to find file merging/splitting.\n\n\n## Help\nUsage documentation for the tool is available via cmdline:\n\ngit-relevant-history --help:\n\n```\nExtract enough git history to facilitate git blame and have each line correctly annotated\n\nWipe all history that has no connection to the current state of the repository.\n\nThe resulting repository is a drop-in replacement for the old directory and has all history needed for typical git history use.\n\nUsage:\n  git-relevant-history [options] --source=\u003csource_repo\u003e --subdir=\u003csubdir\u003e --target=\u003ctarget_repo\u003e\n\nWhere git repo at \u003csource_repo\u003e would be processed into \u003ctarget_repo\u003e, in a way that only files starting with\n\u003csubdir\u003e would be preserved.\n\n\nOptions:\n  --only-specs         Only print git filter-repo specs file as expected by git filter-repo --paths-from-file\n  -h --help            show this help message and exit\n  -f --force           remove \u003ctarget_repo\u003e if exists\n  -v --verbose         print status messages\n  ```\n  Calling when git-relevant-history repo is cloned locally:\n  \n  ./gitrelevanthistory/main.py --source=\u003cbig-repo\u003e --subdir=\u003csubdir-of-big-repo\u003e --target=\u003cpath-of-extracted-small-repo\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlabs-eu%2Fgit-relevant-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainlabs-eu%2Fgit-relevant-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlabs-eu%2Fgit-relevant-history/lists"}