[MacPorts] WorkingWithGit modified

MacPorts noreply at macports.org
Thu Jun 22 13:42:18 UTC 2017


Page "WorkingWithGit" was changed by raimue
Diff URL: <https://trac.macports.org/wiki/WorkingWithGit?action=diff&version=80>
Revision 80
Comment: Unify variable syntax across PR instructions
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: WorkingWithGit
=========================================================================
--- WorkingWithGit (version: 79)
+++ WorkingWithGit (version: 80)
@@ -249,19 +249,19 @@
 
 ==== 1. Check out the pull request locally
 
-Check out - according to [https://help.github.com/articles/checking-out-pull-requests-locally/ GitHub's help] - the pull request {{{#ID}}} to work on as a local branch:{{{BRANCHNAME}}}:
-{{{
-git fetch upstream pull/ID/head:BRANCHNAME
-git checkout BRANCHNAME
+Check out - according to [https://help.github.com/articles/checking-out-pull-requests-locally/ GitHub's help] - the pull request `#ID` to work on as a local branch:`$BRANCHNAME`:
+{{{
+git fetch upstream pull/ID/head:$BRANCHNAME
+git checkout $BRANCHNAME
 }}}
 alternatively you may use
 {{{
-curl -sLS https://github.com/macports/macports-ports/pull/<ID>.patch \
+curl -sLS https://github.com/macports/macports-ports/pull/$ID.patch \
  | git am
 }}}
 or a wrapper script such as hub
 {{{
-hub am https://github.com/macports/macports-ports/pull/<ID>
+hub am https://github.com/macports/macports-ports/pull/$ID
 }}}
 
 Put the proposed changes on top of the current upstream/master:
-------8<------8<------8<------8<------8<------8<------8<------8<--------

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

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 admin at macports.org.


More information about the macports-changes mailing list