{"id":16925171,"url":"https://github.com/banister/diff_highlight","last_synced_at":"2026-05-13T05:41:24.779Z","repository":{"id":62557156,"uuid":"118437572","full_name":"banister/diff_highlight","owner":"banister","description":"Syntax highlight a git diff in the terminal. ","archived":false,"fork":false,"pushed_at":"2018-02-19T23:00:39.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T19:40:59.577Z","etag":null,"topics":["git","ruby"],"latest_commit_sha":null,"homepage":"","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/banister.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-22T09:46:41.000Z","updated_at":"2018-01-22T10:23:19.000Z","dependencies_parsed_at":"2022-11-03T06:30:20.982Z","dependency_job_id":null,"html_url":"https://github.com/banister/diff_highlight","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banister%2Fdiff_highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banister%2Fdiff_highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banister%2Fdiff_highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banister%2Fdiff_highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/banister","download_url":"https://codeload.github.com/banister/diff_highlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244719706,"owners_count":20498688,"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":["git","ruby"],"created_at":"2024-10-13T20:08:59.042Z","updated_at":"2026-05-13T05:41:24.751Z","avatar_url":"https://github.com/banister.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# DiffHighlight\n\n(C) John Mair (banisterfiend)\n\nApplies syntax highlighting to a `git diff`. Use as follows:\n\n```\ngit diff | diff_highlight | less\n```\n\nOutput:\n\n![img](https://www.dropbox.com/s/5s54kls45rzxvrn/Screenshot%202018-01-22%2019.49.10.png?raw=1)\n\n\n## Features\n\n* Makes its best guess at the language appearing in the diff and uses appropriate highlighter\n* Supports Ruby, Javascript, C, YAML, Rakefiles, CSS, HTML, etc\n* Supports multiple languages in the same diff\n* Supports streaming input and output\n\n## How to use\n\nThis gem provides the `diff_highlight` executable. Just install the gem and the executable should be available :)\nUse as follows: `git diff | diff_highlight | less`\n\nOr setup a git alias:\n\nIn `~/.gitconfig`:\n\n```\n[alias]\n    diffc=\"!f() { git diff $@ | diff_highlight | less; }; f\"\n```\n\nAnd use like so:\n\n```\ngit diffc HEAD~2\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanister%2Fdiff_highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanister%2Fdiff_highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanister%2Fdiff_highlight/lists"}