{"id":50791207,"url":"https://github.com/thimo/vscode-line-history","last_synced_at":"2026-06-12T11:02:01.764Z","repository":{"id":358959697,"uuid":"1243887299","full_name":"thimo/vscode-line-history","owner":"thimo","description":"VS Code Timeline experience for a single source line: per-line git history in the Explorer with the native commit hover.","archived":false,"fork":false,"pushed_at":"2026-05-19T19:05:29.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T22:48:27.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/thimo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-19T19:03:12.000Z","updated_at":"2026-05-19T19:05:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thimo/vscode-line-history","commit_stats":null,"previous_names":["thimo/vscode-line-history"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/thimo/vscode-line-history","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thimo%2Fvscode-line-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thimo%2Fvscode-line-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thimo%2Fvscode-line-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thimo%2Fvscode-line-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thimo","download_url":"https://codeload.github.com/thimo/vscode-line-history/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thimo%2Fvscode-line-history/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34240817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-06-12T11:02:00.801Z","updated_at":"2026-06-12T11:02:01.747Z","avatar_url":"https://github.com/thimo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Line History\n\n[![Release](https://img.shields.io/github/v/release/thimo/vscode-line-history?label=release)](https://github.com/thimo/vscode-line-history/releases) [![VS Code Marketplace](https://img.shields.io/badge/marketplace-install-blue)](https://marketplace.visualstudio.com/items?itemName=thimo.line-history)\n\nThe VS Code **Timeline** experience, but for a **single source line** instead\nof the whole file. Same Explorer view, same native commit hover, same\nmulti-diff — scoped to the line under your cursor and its `git log -L`\nhistory. The goal is explicitly to look and feel like Timeline as much as\npossible, just per-line.\n\n## What it does\n\n- **Explorer view \"Line History\"** follows the cursor and lists every commit\n  that touched the current line (`git log -L`). Newest first.\n- **Commit hover** is the *real* VS Code hover widget — the same one\n  Timeline uses (`TreeItem.tooltip`, resolved lazily via `resolveTreeItem`),\n  with the same content as git's commit hover: gravatar + author (mailto),\n  co-authors, relative + absolute date, message, shortstat, and a\n  `$(git-commit) \u003csha\u003e` (copy) · Open Commit · Open on GitHub command row\n  (the GitHub link only when the repo has a github.com remote).\n- **Click a row** → that revision's diff, scrolled to the line.\n- **Inline \"Open Commit\"** (hover a row) → the whole commit as a native\n  multi-file diff.\n- **Title \"Open Full Line History\"** → a native multi-diff with **only the\n  tracked line's hunk** per commit (everything else collapses away), stopping\n  at the commit that introduced the line.\n- **Command Palette: _Line History: Show for Current Line_** → quick-pick of\n  the revisions, as a secondary surface.\n\nThe cursor's buffer line (including unsaved edits) is mapped to the\ncorresponding HEAD line before querying git, so it stays correct on a dirty\nbuffer.\n\nBacked entirely by `git` + the built-in `vscode.git` API (`toGitUri`). Pure\nJS, zero dependencies, no build step.\n\n## Relation to Timeline\n\nVS Code's built-in Timeline shows the commit history of the **whole file**.\nThis shows the commit history of **one line** — the same view location, the\nsame hover widget, the same multi-diff UI, deliberately mirrored so it feels\nnative. Where Timeline answers \"what happened to this file\", Line History\nanswers \"what happened to *this line*\". Nothing more — deliberately small.\n\nNote: a contributed tree view cannot right-align the timestamp the way\nTimeline does\n([microsoft/vscode#107183](https://github.com/microsoft/vscode/issues/107183),\nopen since 2020). The time is shown inline-dimmed after the author instead.\n\n## Settings\n\n- `lineHistory.maxRevisions` — max revisions listed per line (default `10`).\n\n## Development\n\nPure JS — no build. Press \u003ckbd\u003eF5\u003c/kbd\u003e (\"Run Extension\") to launch an\nExtension Development Host with the extension loaded; edit `extension.js` and\nrestart the host to iterate. See [RELEASING.md](RELEASING.md) for packaging.\n\n## License\n\nMIT © Thimo Jansen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthimo%2Fvscode-line-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthimo%2Fvscode-line-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthimo%2Fvscode-line-history/lists"}