{"id":13792244,"url":"https://github.com/samth/git-slice","last_synced_at":"2025-04-11T16:13:14.418Z","repository":{"id":19899918,"uuid":"23165051","full_name":"samth/git-slice","owner":"samth","description":"Slicing git repositories.","archived":false,"fork":false,"pushed_at":"2018-05-21T17:33:53.000Z","size":27,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T12:56:51.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-20T21:34:24.000Z","updated_at":"2021-10-17T14:29:54.000Z","dependencies_parsed_at":"2022-08-26T22:00:32.009Z","dependency_job_id":null,"html_url":"https://github.com/samth/git-slice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fgit-slice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fgit-slice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fgit-slice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fgit-slice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samth","download_url":"https://codeload.github.com/samth/git-slice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248438514,"owners_count":21103410,"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-03T22:01:10.022Z","updated_at":"2025-04-11T16:13:14.397Z","avatar_url":"https://github.com/samth.png","language":"Racket","funding_links":[],"categories":["Racket"],"sub_categories":["game"],"readme":"# For slicing git repositories\n\n### Warning!\n\nThis performs permanent modification to your git repository! Be careful.\n\n\n### Installation\n\n```\nraco pkg install git-slice\n```\n\n\n### Sample use:\n\n```\n$ cd my-repo\n$ racket -l git-slice subdir\n```\n\nThis destructively updates `my-repo` to only include `subdir`.\n\nIt performs multiple steps, which can be split out as follows:\n\n```\n$ mkdir /path/to/tmp-data\n$ cd my-repo\n$ racket -l git-slice/compute subdir /path/to/tmp-data\n$ racket -l git-slice/filter /path/to/tmp-data\n$ racket -l git-slice/chop /path/to/tmp-data\n```\n\nThe `git-slice/filter` and `git-slice/chop` steps can take a long\ntime. They can be sped up by using a ramdisk: see [here][1] for Linux\ninstructions to set one up, and then add `-d /tmp/ramdisk/scratch` as\nan additional argument. This is also supported for the `git-slice`\ncommand itself. The provided path must not yet exist.\n\n`git-slice` can be provided a second argument for a temporary\ndirectory to use to store metadata files. If not provided, a temporary\ndirectory is created. This directory is _not_ removed after slicing.\n\nThe `--dry-run` command can be provided to any command to see what it\nwould do without doing any permanent damage.\n\n [1]: http://www.linuxscrew.com/2010/03/24/fastest-way-to-create-ramdisk-in-ubuntulinux/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Fgit-slice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamth%2Fgit-slice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Fgit-slice/lists"}