From e260bfec04c7643649b88566460188fcafbb8356 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 21 Nov 2016 16:30:12 +0000 Subject: [PATCH] docs/submitting patches: add git tips v2: [Emil Velikov] - Add the shorthand git send-email -vX - Move to submittingpatches.html - Add to the TOC. v3: [Emil Velikov] - Use @~8 instead of HEAD~8 (Nicolai) Cc: Timothy Arceri Signed-off-by: Emil Velikov Reviewed-by: Brian Paul (v1) --- docs/submittingpatches.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/submittingpatches.html b/docs/submittingpatches.html index d3e86f5b443..d2b605bf878 100644 --- a/docs/submittingpatches.html +++ b/docs/submittingpatches.html @@ -25,6 +25,7 @@
  • Reviewing Patches
  • Nominating a commit for a stable branch
  • Criteria for accepting patches to the stable branch +
  • Git tips

    Basic guidelines

    @@ -317,6 +318,25 @@ be rejected: regression that is unaacceptable for the stable branch.
  • +

    Git tips

    + +
      +
    • Test for build breakage between patches e.g last 8 commits. +
      +    git rebase -i --exec="make -j4" HEAD~8
      +
      +
    • Sets the default mailing address for your repo. +
      +    git config --local sendemail.to mesa-dev@lists.freedesktop.org
      +
      +
    • Add version to subject line of patch series in this case for the last 8 +commits before sending. +
      +    git send-email --subject-prefix="PATCH v4" HEAD~8
      +    git send-email -v4 @~8 # shorter version, inherited from git format-patch
      +
      +
    + -- 2.30.2