返回首頁 

Greasy Fork is available in English.

Gitiles: copy commit reference

Adds a "Copy commit reference" button to every commit page on Gitiles websites.


安装此脚本?
作者推荐脚本

您可能也喜欢Cgit: copy commit reference


安装此脚本
作者
andrybak
日安装量
0
总安装量
1
评分
000
版本
4
创建于
2023-10-05
更新于
2024-09-12
大小
3.6 KB
许可证
AGPL-3.0-only
适用于

📋 Features

Adds a "Copy commit reference" button to every commit page. An example of acommit 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 HTMLversion of the commit reference includes clickable links to the website. Thisis useful in rich text editors: Slack, visual mode of Jira, MediaWiki, etc.

🛠️ Custom domain instructions

The userscript is set up with @match rules for public hostings. You might haveto manually add your URL as a "User match" in the settings of the userscript.

Tampermonkey instructions
  1. Go to Dashboard in the extension menu
  2. Click "Edit" button in the line of the userscript that you've just installed
  3. Copy the value from @match field of the metadata
  4. Go to the tab "Settings"
  5. Click "Add..." under "User matches"
  6. Paste the copied value
  7. Replace the original domain with the domain of website that you use
  8. Click "OK"

👀 See also

Userscripts for other Git hosting providers are available in setGit: copy commit reference.

If you use IntelliJ-based IDEs (IDEA, PyCharm, CLion, Goland, etc), you mightalso find plugin Copy Commit Referenceuseful.

🤝 Contributing

Feel free to leave feedback on Greasy Fork,GitHub,GitLab,Codeberg,or Gitea.

Source code of the userscript is available onGitHub,GitLab,Bitbucket,Codeberg,and Gitea.Pull requests are welcome, see details in file CONTRIBUTING.md.