{"id":18497822,"url":"https://github.com/containers/tar-diff","last_synced_at":"2025-04-26T12:29:49.454Z","repository":{"id":41376210,"uuid":"259253474","full_name":"containers/tar-diff","owner":"containers","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-06T17:08:51.000Z","size":245,"stargazers_count":54,"open_issues_count":3,"forks_count":15,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-26T10:34:18.846Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-27T08:32:56.000Z","updated_at":"2025-04-24T16:02:25.000Z","dependencies_parsed_at":"2024-08-06T19:57:18.831Z","dependency_job_id":"e7e3037d-b437-4258-a463-73a9f92a01dc","html_url":"https://github.com/containers/tar-diff","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Ftar-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Ftar-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Ftar-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Ftar-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containers","download_url":"https://codeload.github.com/containers/tar-diff/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250976118,"owners_count":21516878,"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-11-06T13:36:06.745Z","updated_at":"2025-04-26T12:29:49.431Z","avatar_url":"https://github.com/containers.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"tar-diff\n==\n\n`tar-diff` is a golang library and set of commandline tools to diff and patch tar files.\n\n`pkg/tar-diff` and the `tar-diff` takes two (optionally compressed) tar files and generates a single file representing the delta between them.\n\n`pkg/tar-patch` takes a tardiff and the uncompressed contents (such as an extracted directory) of the first tarfile and reconstructs (binary identically) the second tarfile (uncompressed).\n\nExample:\n```\n$ tar-diff old.tar.gz new.tar.gz delta.tardiff\n$ tar xf old.tar.gz -C extracted/\n$ tar-patch delta.tardiff extracted/ reconstructed.tar\n$ zcat new.tar.gz | shasum\n$ shasum reconstructed.tar\n```\n\nThe main usecase for tar-diff is for more efficient distribution of [OCI images](https://github.com/opencontainers/image-spec).\nThese images are typically transferred as compressed tar files, but the content is refered to and validated by the checksum of\nthe uncomressed content. This makes it possible to use an extracted earlier version of and image in combination with a tardiff\nto reconstruct and validate the current version of the image.\n\nDelta compression is based on [bsdiff](http://www.daemonology.net/bsdiff/) and [zstd compression](https://facebook.github.io/zstd/).\n\nThe tar-diff file-format is described in [file-format.md](file-format.md)\n\nLicense\n-\ntar-diff is licensed under the Apache License, Version 2.0. See\n[LICENSE](LICENSE) for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Ftar-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainers%2Ftar-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Ftar-diff/lists"}