[llvm] 6668453 - [docs] use git diff instead of git format-patch
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 07:20:58 PDT 2020
Author: Alexander Lanin
Date: 2020-04-02T07:20:27-07:00
New Revision: 6668453dd25749ac47cd9a822d036b694b0a619d
URL: https://github.com/llvm/llvm-project/commit/6668453dd25749ac47cd9a822d036b694b0a619d
DIFF: https://github.com/llvm/llvm-project/commit/6668453dd25749ac47cd9a822d036b694b0a619d.diff
LOG: [docs] use git diff instead of git format-patch
Uploading output from `git format-patch` fails when version has
more than 2 dots, e.g. git version 2.24.1.windows.2 which is
currently recommended by e.g. GitExtensions or 2.24.1.rc on Linux.
Differential Revision: https://reviews.llvm.org/D72374
Added:
Modified:
llvm/docs/DeveloperPolicy.rst
llvm/docs/GettingStarted.rst
llvm/docs/Phabricator.rst
Removed:
################################################################################
diff --git a/llvm/docs/DeveloperPolicy.rst b/llvm/docs/DeveloperPolicy.rst
index 0b3051a4393b..22f29a06b289 100644
--- a/llvm/docs/DeveloperPolicy.rst
+++ b/llvm/docs/DeveloperPolicy.rst
@@ -89,7 +89,9 @@ to read it as possible. As such, we recommend that you:
patches may not apply correctly if the underlying code changes between the
time the patch was created and the time it is applied.
-#. Patches should be made with ``git format-patch``, or similar. If you use a
+#. Patches should be made with ``git format-patch``, or similar (see special
+ commands for `Requesting Phabricator review via the web interface
+ <Phabricator.html#phabricator-request-review-web>`_ ). If you use a
diff erent tool, make sure it uses the ``
diff -u`` format and that it
doesn't contain clutter which makes it hard to read.
diff --git a/llvm/docs/GettingStarted.rst b/llvm/docs/GettingStarted.rst
index 60b0bbff094d..b21c125b871c 100644
--- a/llvm/docs/GettingStarted.rst
+++ b/llvm/docs/GettingStarted.rst
@@ -447,8 +447,8 @@ either via emailing to llvm-commits, or, preferably, via :ref:`Phabricator
You'll generally want to make sure your branch has a single commit,
corresponding to the review you wish to send, up-to-date with the upstream
``origin/master`` branch, and doesn't contain merges. Once you have that, you
-can use ``git show`` or ``git format-patch`` to output the
diff , and attach it
-to a Phabricator review (or to an email message).
+can start `a Phabricator review <Phabricator.html>`_ (or use ``git show`` or
+``git format-patch`` to output the
diff , and attach it to an email message).
However, using the "Arcanist" tool is often easier. After `installing
arcanist`_, you can upload the latest commit using:
diff --git a/llvm/docs/Phabricator.rst b/llvm/docs/Phabricator.rst
index bd843d4f433c..f6b7fa50d79e 100644
--- a/llvm/docs/Phabricator.rst
+++ b/llvm/docs/Phabricator.rst
@@ -59,7 +59,8 @@ To get a full
diff , use one of the following commands (or just use Arcanist
to upload your patch):
* ``git show HEAD -U999999 > mypatch.patch``
-* ``git format-patch -U999999 @{u}``
+* ``git
diff -U999999 @{u} > mypatch.patch``
+* ``git
diff HEAD~1 -U999999 > mypatch.patch``
Before uploading your patch, please make sure it is formatted properly, as
described in :ref:`How to Submit a Patch <format patches>`.
More information about the llvm-commits
mailing list