{"id":18459182,"url":"https://github.com/smartbear/lhdiff","last_synced_at":"2026-02-03T16:03:12.103Z","repository":{"id":44535627,"uuid":"422366949","full_name":"SmartBear/lhdiff","owner":"SmartBear","description":"A Lightweight Hybrid Approach for Tracking Source Lines","archived":false,"fork":false,"pushed_at":"2024-11-22T15:35:31.000Z","size":79,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-23T11:52:23.584Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmartBear.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2021-10-28T21:59:58.000Z","updated_at":"2024-04-10T15:26:17.000Z","dependencies_parsed_at":"2022-08-25T08:02:50.032Z","dependency_job_id":"bfc78946-ec62-4d0d-afef-90808248db86","html_url":"https://github.com/SmartBear/lhdiff","commit_stats":null,"previous_names":["aslakhellesoy/lhdiff"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/SmartBear/lhdiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Flhdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Flhdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Flhdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Flhdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartBear","download_url":"https://codeload.github.com/SmartBear/lhdiff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Flhdiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29048694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-06T08:22:09.997Z","updated_at":"2026-02-03T16:03:12.060Z","avatar_url":"https://github.com/SmartBear.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/SmartBear/lhdiff/actions/workflows/test.yml/badge.svg)](https://github.com/SmartBear/lhdiff/actions/workflows/test.yml)\n# lhdiff\n\nA Lightweight Hybrid Approach for Tracking Source Lines.\n\nLhdiff provides a mapping of individual lines between two revisions of the same file. It provides a better mapping than\nUnix diff, and works independently of the file contents (programming language). See [ARCHITECTURE.md](ARCHITECTURE.md) for more details.\n\n## Install\n\n    go get github.com/SmartBear/lhdiff\n\nTo install from source, see [CONTRIBUTING.md](./CONTRIBUTING.md)\n\n## Usage\n\nThere are two ways to use lhdiff - as a commandline program, or as a library\n\n### Command line\n\n    lhdiff [--compact] left right\n\nExample using git:\n\n    lhdiff --compact \\\n    \u003c( git show 400a62e39d39d231d8160002dfb7ed95a004278b:cmd/lhdiff/main.go ) \\\n    \u003c( git show 35f1ba7b554d69a07e59d6f69297d08599f4217c:cmd/lhdiff/main.go )\n\n    lhdiff --compact \\\n    \u003c( git show 085519173c4e6e76c425dac0a628f21ff0cdcfa8:lhdiff.go ) \\\n    \u003c( git show 4ae3495de0c31675940861592a3929df8154785f:lhdiff.go )\n\n### Library\n\n```go\nleft := `one two three four\neight\nnine ten eleven twelve\nthirteen fourteen fifteen`\n\nright := `one two three four\nnine ten twelve\nfive six BANANA seven eight\nAPPLE PEAR\nthirteen fourteen fifteen\n`\n\nlinePairs := Lhdiff(left, right, 4)\nPrintLinePairs(linePairs, false)\n\n// Output:\n// 1,1\n// 2,_\n// 3,2\n// 4,5\n```\n\n# Related\n\n* [diffsitter](https://github.com/afnanenayet/diffsitter)\n* [Incremental Origin Analysis of Source Code Files](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.721.548\u0026rep=rep1\u0026type=pdf)\n\n# LICENSE\n\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg)](http://www.opensource.org/licenses/MIT)\n\nThis is distributed under the [MIT License](http://www.opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartbear%2Flhdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartbear%2Flhdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartbear%2Flhdiff/lists"}