From: Matthias Braun Date: Thu, 15 Jun 2017 22:09:30 +0000 (+0000) Subject: docs/Phabricator: Better git examples to produce full context patches X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c82adde7b97fc21bddcc396683487af5a6bb73cd;p=llvm docs/Phabricator: Better git examples to produce full context patches git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305515 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/Phabricator.rst b/docs/Phabricator.rst index 8d1984b65cd..cc8484cc1e3 100644 --- a/docs/Phabricator.rst +++ b/docs/Phabricator.rst @@ -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: