{"id":13648472,"url":"https://github.com/purcell/darcs-to-git","last_synced_at":"2025-04-05T11:10:31.308Z","repository":{"id":396561,"uuid":"14602","full_name":"purcell/darcs-to-git","owner":"purcell","description":"Convert/mirror darcs repos into git repos","archived":false,"fork":false,"pushed_at":"2024-11-07T07:31:02.000Z","size":74,"stargazers_count":97,"open_issues_count":4,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T10:09:08.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.sanityinc.com/articles/converting-darcs-repositories-to-git","language":"Ruby","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/purcell.png","metadata":{"files":{"readme":"README.markdown","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":"2008-05-05T07:59:31.000Z","updated_at":"2025-01-16T05:23:23.000Z","dependencies_parsed_at":"2024-10-31T02:02:20.294Z","dependency_job_id":"a8925c43-1da8-4e31-aa62-85db3e2c7671","html_url":"https://github.com/purcell/darcs-to-git","commit_stats":{"total_commits":145,"total_committers":22,"mean_commits":6.590909090909091,"dds":0.5310344827586206,"last_synced_commit":"7b7bbc653c953772edffc2378cc0b2fe7632e1fa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fdarcs-to-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fdarcs-to-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fdarcs-to-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fdarcs-to-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purcell","download_url":"https://codeload.github.com/purcell/darcs-to-git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-08-02T01:04:17.061Z","updated_at":"2025-04-05T11:10:31.286Z","avatar_url":"https://github.com/purcell.png","language":"Ruby","funding_links":["https://www.patreon.com/sanityinc"],"categories":["Ruby"],"sub_categories":[],"readme":"darcs-to-git\n============\n\nConverts a Darcs repository into a Git repository.  Supports\nincremental updates, i.e., you can pull new patches from the source\nrepository or import a large repository in steps.\n\nUsage\n-----\n\n(Use `darcs-to-git --help` to display the latest usage instructions.)\n\n1. Create an *empty* directory that will become the new git repository\n2. From inside that directory, run this program, passing the location\n   of the local source darcs repo as a parameter\n\nThe program will git-init the empty directory, and migrate all patches\nin the source darcs repo into commits in that repository.\n\nThereafter, incremental patch conversion from the same source repo is\npossible by repeating step 2.\n\nOptions\n-------\n\n * `--patches N`: only import `N` patches.\n\n * `--email-address ADDRESS`: `darcs-to-git` tries to reconstruct the\n   email address from the darcs patch.  In cases this is not possible,\n   a default will be picked by Git.  This is usually the one in\n   `~/.gitconfig`.  This option allows you to specify another default\n   (without having to to modify `~/.gitconfig.`)\n\n * `--list-authors`: Outputs a list of authors in the source\n   repository and how they will appear in the git repository and\n   quits.  The output will be lines like this:\n\n   ```\n   Jane@example.com: Jane \u003cJane@example.com\u003e\n   ```\n\n   This means that the darcs author `Jane@example.com` will be\n   translated to git-author `Jane` with email address\n   `Jane@example.com`.  You can use the output of this command as a\n   starting point for the input for `--author-map`.\n\n * `--author-map FILENAME`: Allows translations from darcs committer\n   name to Git committer name.  The input is a YAML map.  For an\n   example see the output of `--list-authors`.  The author map will be\n   stored in the repository and will be re-used for future imports.\n\n\nKnown issues\n------------\n\nWhen `darcs-to-git` pulls a conflicting patch it will revert the state\nof the repository to the state before the conflict. **This will also\nremove any local changes to your repository, including git commits!**\nYou should therefore not commit to the branch you import to, but\ninstead work in a different branch.  You can rename your master branch\nafter import using:\n\n    $ git branch -m darcs_import\n\n`darcs-to-git` creates a full copy of the original repository in addition to the Git repository;\nthis can lead to considerable space usage. You can save space by treating the copied Darcs\nrepository [as a branch](http://wiki.darcs.net/BestPractices#how-to-create-a-branch) by\nrunning\n\n    $ darcs optimize --relink --sibling /old-repo/dir\n\ninside the new repository.\n\nAcknowledgements\n----------------\n\nWritten and maintained by Steve Purcell, with some improvements by\nThomas Schilling, Jonathon Mah and others.\n\n\n\u003chr\u003e\n\n[💝 Support this project and my other Open Source work via Patreon](https://www.patreon.com/sanityinc)\n\n[💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)\n\n[✍ sanityinc.com](http://www.sanityinc.com/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurcell%2Fdarcs-to-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurcell%2Fdarcs-to-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurcell%2Fdarcs-to-git/lists"}