Documentation: stylistically normalize references to Signed-off-by:
authorBradley M. Kuhn <bkuhn@sfconservancy.org>
Tue, 20 Oct 2020 01:03:55 +0000 (18:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Oct 2020 18:57:40 +0000 (11:57 -0700)
commit3abd4a67d912e0c0980aa34def6ea55ebde84947
treefe44fc078909c189c85503a963989eba50276b57
parenta650fa74970bc7489dcc0c68c84f3f23460a6aca
Documentation: stylistically normalize references to Signed-off-by:

Ted reported an old typo in the git-commit.txt and merge-options.txt.
Namely, the phrase "Signed-off-by line" was used without either a
definite nor indefinite article.

Upon examination, it seems that the documentation (including items in
Documentation/, but also option help strings) have been quite
inconsistent on usage when referring to `Signed-off-by`.

First, very few places used a definite or indefinite article with the
phrase "Signed-off-by line", but that was the initial typo that led
to this investigation.  So, normalize using either an indefinite or
definite article consistently.

The original phrasing, in Commit 3f971fc425b (Documentation updates,
2005-08-14), is "Add Signed-off-by line".  Commit 6f855371a53 (Add
--signoff, --check, and long option-names. 2005-12-09) switched to
using "Add `Signed-off-by:` line", but didn't normalize the former
commit to match.  Later commits seem to have cut and pasted from one
or the other, which is likely how the usage became so inconsistent.

Junio stated on the git mailing list in
<xmqqy2k1dfoh.fsf@gitster.c.googlers.com> a preference to leave off
the colon.  Thus, prefer `Signed-off-by` (with backticks) for the
documentation files and Signed-off-by (without backticks) for option
help strings.

Additionally, Junio argued that "trailer" is now the standard term to
refer to `Signed-off-by`, saying that "becomes plenty clear that we
are not talking about any random line in the log message".  As such,
prefer "trailer" over "line" anywhere the former word fits.

However, leave alone those few places in documentation that use
Signed-off-by to refer to the process (rather than the specific
trailer), or in places where mail headers are generally discussed in
comparison with Signed-off-by.

Reported-by: "Theodore Y. Ts'o" <tytso@mit.edu>
Signed-off-by: Bradley M. Kuhn <bkuhn@sfconservancy.org>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 files changed:
Documentation/MyFirstContribution.txt
Documentation/SubmittingPatches
Documentation/config/format.txt
Documentation/git-am.txt
Documentation/git-cherry-pick.txt
Documentation/git-format-patch.txt
Documentation/git-rebase.txt
Documentation/git-revert.txt
Documentation/git-send-email.txt
Documentation/git-svn.txt
Documentation/githooks.txt
Documentation/signoff-option.txt
builtin/am.c
builtin/commit.c
builtin/log.c
builtin/merge.c
builtin/pull.c
builtin/rebase.c
builtin/revert.c
commit.c