您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a "Copy commit reference" button to every commit page on Gitiles websites.
当前为
Adds a "Copy commit reference" button to every commit page. An example of a commit reference is:
The reference format in git.git repository has been implemented in commit 1f0fc1d (pretty: implement 'reference' format, 2019-11-20).
Such references are a good way of providing context in commit messages.
The userscript puts both plain text and HTML content to the clipboard. The HTML version of the commit reference includes clickable links to the website. This is useful in rich text editors, e.g. in Slack and visual mode of Jira.
If you use IntelliJ-based IDEs (IDEA, PyCharm, CLion, Goland, etc), you might also find plugin Copy Commit Reference useful.
The userscript is set up with @match
rules for public hostings. You might have
to manually add your URL as a "User match" in the settings of the userscript.
@match
field of the metadataSame userscripts for other Git hosting providers are available in set Git: copy commit reference.
Feel free to leave feedback on Greasy Fork, GitHub, GitLab, Forgejo, or Gitea.
Source code of the userscript is available on
GitHub,
GitLab,
Bitbucket,
Gogs,
Forgejo,
and Gitea.
Pull requests are welcome, see details in file CONTRIBUTING.md
.