[MacPorts] WorkingWithGit modified

MacPorts noreply at macports.org
Mon Aug 29 01:47:25 PDT 2016


Page "WorkingWithGit" was changed by raimue at macports.org
Diff URL: <https://trac.macports.org/wiki/WorkingWithGit?action=diff&version=52>
Revision 52
Comment: Referencing tickets, pull requests and commits
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: WorkingWithGit
=========================================================================
--- WorkingWithGit (version: 51)
+++ WorkingWithGit (version: 52)
@@ -65,6 +65,12 @@
  1. Use the imperative mood in the subject line
  1. Wrap the body at 72 characters
  1. Use the body to explain what and why vs. how
+
+Additionally, MacPorts has the following rules for references to tickets, pull requests and commits:
+
+ * When referencing a ticket, use the full URL to  Trac: !https://trac.macports.org/<number>
+ * When referencing a pull request, use !#12345
+ * When referencing a commit, use a git commit hash: !bfc6af313273c79515df9bde4f3eaa2dd0f15276, which may be abbreviated to up to 7 characters: !bfc6af3
 
 If you don't want to remember these rules, you can configure your git client to load a template whenever it prompts you for a commit message by setting the `commit.template` [https://git-scm.com/docs/git-config git-config(1)] option. The KDE developers [https://quickgit.kde.org/?p=macports-kde.git&a=blob&h=14f952f776b9f54263671cc2aba5886c6ebee75b&f=contrib%2Fgit-setup%2F.git-commit-template&o=plain have a nice example].
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/WorkingWithGit>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'WorkingWithGit' page.
If it was not you, please report to .


More information about the macports-changes mailing list