Git Change TrailIntroductionGit Change Trail is a VS Code extension that shows the commit history of the file you are currently editing. Click a commit to see which files changed, open any file at that revision, and compare revisions side by side — all from the sidebar without leaving your editor. Features
Requirements
This extension works when a Git repository is open in the VS Code workspace. UsageViewing commit historyOpen any file tracked by Git. The Commit History panel on the sidebar updates automatically to show that file's history. To load history for a file that is not yet open, right-click it in the Explorer and choose Show Commit History. Exploring a commitClick any commit in the Commit History panel. The Commit Files panel shows the files that were changed in that commit as a directory tree. Click a file in the tree to open its content at that revision. The tab title includes the short commit hash so you can tell it apart from the live file. Comparing revisionsEach file item in the Commit Files panel has two inline action buttons:
While a diff is open, the Commit Files panel title shows the two commits being compared, for example Viewing the full history of a fileIn the Commit Files panel, click the Show Full File History button on a file item. The Commit History panel reloads with the complete history of that file, clearing any active filters. FilteringThe Commit History panel title bar provides three buttons:
When filters are active, the panel title shows the applied range or author count. Keyboard shortcutThere is no default keybinding. You can assign one to the Show Commit History command in VS Code Keyboard Shortcuts. Development Setup
Open this repository in VS Code and run the Run Extension debug configuration to launch the Extension Development Host. Useful commands:
ContributingIssues, bug reports, feature suggestions, and documentation improvements are welcome.
When reporting a bug, include your VS Code version, operating system, reproduction steps, expected behavior, and actual behavior. LicenseThis project is free to use, but redistribution of the same or substantially similar software is not permitted. See |