summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-21 16:30:12 +0000
committerEmil Velikov <[email protected]>2016-11-22 15:13:41 +0000
commite260bfec04c7643649b88566460188fcafbb8356 (patch)
treef6ad2077b9fb0d54a1044853a582ea54c6f68216
parent29c8a4a4cec1e7eb31df4a7218f2bd09854a8374 (diff)
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 <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]> (v1)
-rw-r--r--docs/submittingpatches.html20
1 files changed, 20 insertions, 0 deletions
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 @@
<li><a href="#reviewing">Reviewing Patches</a>
<li><a href="#nominations">Nominating a commit for a stable branch</a>
<li><a href="#criteria">Criteria for accepting patches to the stable branch</a>
+<li><a href="#gittips">Git tips</a>
</ul>
<h2 id="guidelines">Basic guidelines</h2>
@@ -317,6 +318,25 @@ be rejected:
regression that is unaacceptable for the stable branch.</li>
</ul>
+<h2 id="gittips">Git tips</h2>
+
+<ul>
+<li>Test for build breakage between patches e.g last 8 commits.
+<pre>
+ git rebase -i --exec="make -j4" HEAD~8
+</pre>
+<li>Sets the default mailing address for your repo.
+<pre>
+ git config --local sendemail.to [email protected]
+</pre>
+<li> Add version to subject line of patch series in this case for the last 8
+commits before sending.
+<pre>
+ git send-email --subject-prefix="PATCH v4" HEAD~8
+ git send-email -v4 @~8 # shorter version, inherited from git format-patch
+</pre>
+</ul>
+
</div>
</body>