SubmittingPatches: mention doc-diff
authorJeff King <peff@peff.net>
Tue, 21 Aug 2018 19:23:22 +0000 (15:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Aug 2018 19:54:33 +0000 (12:54 -0700)
We already advise people to make sure their documentation
formats correctly. Let's point them at the doc-diff script,
which can help with that.

Let's also put a brief note in the script about its purpose,
since that otherwise can only be found in the original
commit message. Along with the existing -h/usage text,
that's hopefully enough for developers to make use of it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/SubmittingPatches
Documentation/doc-diff
index b44fd51f275b105b62a1f5c9d23ca616e2d87e7d..ec8b2051450abb90a77b1edf243d9dd01b16867e 100644 (file)
@@ -80,7 +80,9 @@ GitHub-Travis CI hints section for details.
 
 Do not forget to update the documentation to describe the updated
 behavior and make sure that the resulting documentation set formats
-well. It is currently a liberal mixture of US and UK English norms for
+well (try the Documentation/doc-diff script).
+
+We currently have a liberal mixture of US and UK English norms for
 spelling and grammar, which is somewhat unfortunate.  A huge patch that
 touches the files all over the place only to correct the inconsistency
 is not welcome, though.  Potential clashes with other changes that can
index f483fe427cea4c82ebe69fc67f3a8efd3d53ec9c..6e285e648cc15905bc2b3336b3a351dc076e2dca 100755 (executable)
@@ -1,4 +1,12 @@
 #!/bin/sh
+#
+# Build two documentation trees and diff the resulting formatted output.
+# Compared to a source diff, this can reveal mistakes in the formatting.
+# For example:
+#
+#   ./doc-diff origin/master HEAD
+#
+# would show the differences introduced by a branch based on master.
 
 OPTIONS_SPEC="\
 doc-diff [options] <from> <to> [-- <diff-options>]