{"id":43986562,"url":"https://github.com/setlog/duperig","last_synced_at":"2026-02-07T10:03:59.858Z","repository":{"id":54971716,"uuid":"225648552","full_name":"setlog/duperig","owner":"setlog","description":"Find copied and modified files between two related folder hierarchies in a git repository.","archived":false,"fork":false,"pushed_at":"2023-12-15T02:41:29.000Z","size":16,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-21T10:59:07.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/setlog.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":"2019-12-03T15:07:00.000Z","updated_at":"2019-12-16T08:53:10.000Z","dependencies_parsed_at":"2024-06-21T10:09:11.936Z","dependency_job_id":null,"html_url":"https://github.com/setlog/duperig","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"71d821764037fd620fcf6b84eda854dc94cbc63a"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/setlog/duperig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fduperig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fduperig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fduperig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fduperig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setlog","download_url":"https://codeload.github.com/setlog/duperig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fduperig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-02-07T10:03:59.131Z","updated_at":"2026-02-07T10:03:59.851Z","avatar_url":"https://github.com/setlog.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## duperig\n\nFind copied and modified (*duped* and *rigged*) files between two related folder hierarchies which are contained in git repositories. Prints current file SHA-256 along with its latest matching commit hash **as seen in the git repository of the first folder specified in the argument list** (if available).\n\n### Requirements\n\n* Some version of git which isn't ancient. Tested with git `2.17.1`.\n* Go 1.13.\n\n### Installation\n\n```\ngo get -u github.com/setlog/duperig\n```\n\n### Usage\n\n`git checkout` the correct revisions of the projects in which you want to compare folder hierarchies, then use the command like so:\n\n```\nduperig path/to/folder/from/which/files/were/copied path/to/folder/to/which/files/were/copied\n```\n\n### Example\n\n```\nduperig projects/thingamajig_base/src/main/java/com/pany projects/thingamajig_special/src/main/java/com/pany\nDIFF: services/Foo.java: 7418a5b686 (Commit: a7e5433603) vs dd232c048b (Commit: 119bb3cb41)\nDIFF: data/Result.java: 711528c9c2 (Commit: a70d2cc30f) vs 2503ca3aeb (Commit: 47a05b7ada)\nDIFF: data/Data.java: 123456789ab (Commit: 98765434567) vs 2637485985 (NO MATCHING COMMIT)\nDUPE: mail/MailClient.java @ 3ec54907a4\nDUPE: save/Database.java @ 5c346980d6\nThere are 5 coinciding paths. Out of these, 2 have matching files and 3 have differing files.\nOut of the 3 different files, 1 files have modifications unknown to the repository at /home/u/projects/thingamajig_base.\n```\n\nFolder structure at `projects/thingamajig_special/src/main/java/com/pany` has 5 files with paths coninciding with 5 other files under `projects/thingamajig_base/src/main/java/com/pany`. Out of those 5 files, 2 are exact duplicates. The remaining 3 files differ. From the differing files, 2 have commit hashes in `projects/thingamajig_base`. However, the file `projects/thingamajig_base/src/main/java/com/data/Data.java` has changes unique to `projects/thingamajig_special`.\n\n### Status\n\nWorking, but slow and unoptimized. Not suitable for projects above 1 GB.\n\n### TODO\n\nSee issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetlog%2Fduperig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetlog%2Fduperig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetlog%2Fduperig/lists"}