From c82adde7b97fc21bddcc396683487af5a6bb73cd Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 15 Jun 2017 22:09:30 +0000 Subject: [PATCH] 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 --- docs/Phabricator.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.50.1