[llvm] r305515 - docs/Phabricator: Better git examples to produce full context patches

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 15:09:31 PDT 2017


Author: matze
Date: Thu Jun 15 17:09:30 2017
New Revision: 305515

URL: http://llvm.org/viewvc/llvm-project?rev=305515&view=rev
Log:
docs/Phabricator: Better git examples to produce full context patches

Modified:
    llvm/trunk/docs/Phabricator.rst

Modified: llvm/trunk/docs/Phabricator.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Phabricator.rst?rev=305515&r1=305514&r2=305515&view=diff
==============================================================================
--- llvm/trunk/docs/Phabricator.rst (original)
+++ llvm/trunk/docs/Phabricator.rst Thu Jun 15 17:09:30 2017
@@ -54,7 +54,8 @@ reviewer understand your code.
 To get a full diff, use one of the following commands (or just use Arcanist
 to upload your patch):
 
-* ``git diff -U999999 other-branch``
+* ``git show HEAD -U999999 > mypatch.patch``
+* ``git format-patch -U999999 @{u}``
 * ``svn diff --diff-cmd=diff -x -U999999``
 
 To upload a new patch:




More information about the llvm-commits mailing list