{"id":13647689,"url":"https://github.com/janestreet/patdiff","last_synced_at":"2025-04-12T19:48:03.297Z","repository":{"id":6831588,"uuid":"8079910","full_name":"janestreet/patdiff","owner":"janestreet","description":"File Diff using the Patience Diff algorithm. https://opensource.janestreet.com/patdiff/","archived":false,"fork":false,"pushed_at":"2024-11-21T20:33:09.000Z","size":1052,"stargazers_count":228,"open_issues_count":3,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T19:47:55.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/janestreet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2013-02-07T19:25:59.000Z","updated_at":"2025-03-02T12:17:08.000Z","dependencies_parsed_at":"2023-01-11T20:10:02.126Z","dependency_job_id":"640105e6-c913-455c-bcdb-b09c764e0e84","html_url":"https://github.com/janestreet/patdiff","commit_stats":{"total_commits":198,"total_committers":12,"mean_commits":16.5,"dds":0.6212121212121212,"last_synced_commit":"ab65ae2d0b9fd94c9a852379066807832a17e594"},"previous_names":[],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janestreet%2Fpatdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janestreet%2Fpatdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janestreet%2Fpatdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janestreet%2Fpatdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janestreet","download_url":"https://codeload.github.com/janestreet/patdiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625497,"owners_count":21135513,"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:03:42.747Z","updated_at":"2025-04-12T19:48:03.264Z","avatar_url":"https://github.com/janestreet.png","language":"OCaml","funding_links":[],"categories":["OCaml"],"sub_categories":[],"readme":"Patdiff - colored patience diffs with word-level refinement\n===========================================================\n\nPatdiff is an OCaml implementation of Bram Cohen's patience diff algorithm,\nwith a few extra conveniences for comparing code and config files:\n\n**outputs plain ASCII, ANSI color codes, or HTML**\n\n**optional semantic diffing of numbers**\n\n![screenshot](./doc/float-tolerance.png)\n\n**good word-level diffing out of the box**\n\n![screenshot](./doc/refined.png)\n\nAnd of course all the usual features:\n\n- recursive diffing of directories\n- extensively configurable output (markers, colors, location format, context)\n- whitespace-aware diffing\n\n## Installation\n\n```sh\nopam install patdiff\n```\n\nSee \u003ca href=\"https://github.com/janestreet/patdiff/blob/master/patdiff.opam\" target=\"_blank\"\u003e\nhere\u003c/a\u003e for Patdiff's opam package file.\n## Compiling from source\n\nTo build patdiff for local development, install its dependencies:\n\n```sh\ngit clone https://github.com/janestreet/patdiff\ncd patdiff\nopam install --deps-only .\n```\n\nTo compile, and optionally install, patdiff:\n\n```sh\nmake\nmake install\n```\n\n## Usage\n\n```sh\npatdiff old-file new-file\n```\n\nIf you don't supply any arguments to patdiff, it will read diff-like\ntext from stdin and color it in the normal patdiff way.\n\nThe file `~/.patdiff` is used as a config file if it exists.  You can\nwrite a sample config with the `-make-config` flag.\n\n## patdiff-git-wrapper\n\nA simple [wrapper][patdiff-git-wrapper] is provided for using patdiff\nas git's \"external diff\" tool.  You can enable it with:\n\n    export GIT_EXTERNAL_DIFF=$(command -v patdiff-git-wrapper)\n\nor\n\n    git config --global diff.external $(command -v patdiff-git-wrapper)\n\n[patdiff-git-wrapper]: https://github.com/janestreet/patdiff/blob/master/bin/patdiff-git-wrapper\n\n## Documentation\n\nMore docs, including detailed API docs, are available\n\u003ca href=\"https://ocaml.janestreet.com/ocaml-core/latest/doc/patdiff/index.html\" target=\"_blank\"\u003ehere\u003c/a\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanestreet%2Fpatdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanestreet%2Fpatdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanestreet%2Fpatdiff/lists"}