Skip to content

Commit 1627e6b

Browse files
Red54gitster
authored andcommittedOct 9, 2023
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 c2c349a (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>
1 parent c2c349a commit 1627e6b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎Documentation/gittutorial.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ which will automatically notice any modified (but not new) files, add
137137
them to the index, and commit, all in one step.
138138

139139
A note on commit messages: Though not required, it's a good idea to
140-
begin the commit message with a single short (less than 50 character)
141-
line summarizing the change, followed by a blank line and then a more
142-
thorough description. The text up to the first blank line in a commit
143-
message is treated as the commit title, and that title is used
140+
begin the commit message with a single short (no more than 50
141+
characters) line summarizing the change, followed by a blank line and
142+
then a more thorough description. The text up to the first blank line in
143+
a commit message is treated as the commit title, and that title is used
144144
throughout Git. For example, linkgit:git-format-patch[1] turns a
145145
commit into email, and it uses the title on the Subject line and the
146146
rest of the commit in the body.

‎Documentation/user-manual.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ choosing "Stage Hunk For Commit").
11221122
=== Creating good commit messages
11231123

11241124
Though not required, it's a good idea to begin the commit message
1125-
with a single short (less than 50 character) line summarizing the
1125+
with a single short (no more than 50 characters) line summarizing the
11261126
change, followed by a blank line and then a more thorough
11271127
description. The text up to the first blank line in a commit
11281128
message is treated as the commit title, and that title is used

‎po/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ There are some conventions that l10n contributors must follow:
412412
- Do not use non-ASCII characters in the subject of a commit.
413413

414414
- The length of commit subject (first line of the commit log) should
415-
be less than 50 characters, and the length of other lines of the
415+
be no more than 50 characters, and the length of other lines of the
416416
commit log should be no more than 72 characters.
417417

418418
- Add "Signed-off-by" trailer to your commit log, like other commits

0 commit comments

Comments
 (0)