aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gittutorial.txt
diff options
context:
space:
mode:
author谢致邦 (XIE Zhibang) <Yeking@Red54.com>2023-10-08 15:19:26 +0000
committerJunio C Hamano <gitster@pobox.com>2023-10-09 12:07:26 -0700
commit1627e6b4e4b41d25443cc9abf5b09f58153d6f09 (patch)
tree44a44cdf33199fa0dc87ee4a6bfe9b7878349d80 /Documentation/gittutorial.txt
parentc2c349a15c0430a2ef9f858d69d095a00693379c (diff)
downloadgit-1627e6b4e4b41d25443cc9abf5b09f58153d6f09.tar.gz
doc: correct the 50 characters soft limit (+)
The soft limit of the first line of the commit message should be "no more than 50 characters" or "50 characters or less", but not "less than 50 character". This is an addition to commit c2c349a15c (doc: correct the 50 characters soft limit, 2023-09-28). Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gittutorial.txt')
-rw-r--r--Documentation/gittutorial.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/gittutorial.txt b/Documentation/gittutorial.txt
index c7cadd8aaf..4759408788 100644
--- a/Documentation/gittutorial.txt
+++ b/Documentation/gittutorial.txt
@@ -137,10 +137,10 @@ which will automatically notice any modified (but not new) files, add
them to the index, and commit, all in one step.
A note on commit messages: Though not required, it's a good idea to
-begin the commit message with a single short (less than 50 character)
-line summarizing the change, followed by a blank line and then a more
-thorough description. The text up to the first blank line in a commit
-message is treated as the commit title, and that title is used
+begin the commit message with a single short (no more than 50
+characters) line summarizing the change, followed by a blank line and
+then a more thorough description. The text up to the first blank line in
+a commit message is treated as the commit title, and that title is used
throughout Git. For example, linkgit:git-format-patch[1] turns a
commit into email, and it uses the title on the Subject line and the
rest of the commit in the body.