OSDN Git Service

docs/Phabricator: Better git examples to produce full context patches
authorMatthias Braun <matze@braunis.de>
Thu, 15 Jun 2017 22:09:30 +0000 (22:09 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 15 Jun 2017 22:09:30 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305515 91177308-0d34-0410-b5e6-96231b3b80d8

docs/Phabricator.rst

index 8d1984b..cc8484c 100644 (file)
@@ -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: