[Source Control] Feature Request: Identify commit hashes in commit descriptions in commit hover tips and make them link to the referenced commit
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Currently, the commit hover tips do not identify commit hashes present in commit messages. This does not work with short commit IDs and neither with the full IDs:
I propose identifying these as commit hashes and rendering them as links that show the commit changes in VS Code. The feature of showing a commit's changes in VS Code already exists and can be seen in the "Open Commit" button at the bottom left corner of the hover tip.
## Why?
1. People are already familiar with this feature as it works on GitHub. The screenshot below shows one of the example commits when viewed on GitHub.
2. This already works for GitHub issues numbers, so users would expect it to work for commit hashes as well. Screenshot showing it working for GitHub issue numbers:
3. Code review and long, descriptive commit messages are commonplace, and even more so in the age of GenAI. This feature will allow someone reading a commit message in the hover tip to easily check the changes of other commits that are referenced in the message.
Contributor guide
Assessment
This issue has not been assessed yet.