Skip to contentSkip to conversation

"b4 am" quotes parens in S-o-b lines

DISCUSSION Matthew Wilcox 4 participants 7 messages Oct 16, 2023 – Oct 17, 2023

lore
Share & tools
lore
#0 lore raw

Quick example:

$ b4 am [email protected]
$ grep Signed ./20231012_willy_allow_nesting_of_lazy_mmu_mode.mbx
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>

The quote marks do not appear in the original emails, eg
https://lore.kernel.org/all/[email protected]/

Adding the quotes around the name is not needed; I have many commits in Linux without the quote marks.

Thanks!

#1 lore raw
Quoted 7 lines · Matthew Wilcox

Quick example:

$ b4 am [email protected]
$ grep Signed ./20231012_willy_allow_nesting_of_lazy_mmu_mode.mbx
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Quoted 5 lines

The quote marks do not appear in the original emails, eg
https://lore.kernel.org/all/[email protected]/

Adding the quotes around the name is not needed; I have many commits in Linux without the quote marks.

It's a regression due to switching to the same code that does actual email headers (where quote-escaping is needed for special chars like commas and parentheses). It's not needed for git trailers, so we'll need separate handling for thise cases.

bugbot assign to me

-K

#3 lore raw
In reply to Matthew Wilcox

Konstantin Ryabitsev writes in commit 26615095533f901d9cbf9eb599f4dc5e305f5036:

trailers: do not quote names when special chars are present

When fixing potential email address rendering problems, we do not need to be as stringent about the contents of the git trailer as when we are dealing with actual email headers. For example, we do not need to quote names containing things like commas or parentheses.

Fixes 832010c4d50 ("trailers: normalize address after parsing")

(via https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=26615095533f)

Signature · 2 lines
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
#6 lore raw
In reply to Matthew Wilcox
Quoted 7 lines · Matthew Wilcox

Quick example:

$ b4 am [email protected]
$ grep Signed ./20231012_willy_allow_nesting_of_lazy_mmu_mode.mbx
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Quoted 5 lines

The quote marks do not appear in the original emails, eg
https://lore.kernel.org/all/[email protected]/

Adding the quotes around the name is not needed; I have many commits in Linux without the quote marks.

This should be fixed in master and stable-0.12.y. I will probably release version 0.12.4 some time in the near future.

Thank you for the report.

-K

#4 lore raw
In reply to Kernel.org Bugbot
Quoted 10 lines · Kernel.org Bugbot

Konstantin Ryabitsev writes in commit 26615095533f901d9cbf9eb599f4dc5e305f5036:

trailers: do not quote names when special chars are present

When fixing potential email address rendering problems, we do not need to be as stringent about the contents of the git trailer as when we are dealing with actual email headers. For example, we do not need to quote names containing things like commas or parentheses.

Surely that should be ...

;-)

Thanks for the quick fix!

#5 lore raw
Quoted 10 lines · Matthew Wilcox
Quoted 9 lines · Kernel.org Bugbot

Konstantin Ryabitsev writes in commit 26615095533f901d9cbf9eb599f4dc5e305f5036:

trailers: do not quote names when special chars are present

When fixing potential email address rendering problems, we do not need to be as stringent about the contents of the git trailer as when we are dealing with actual email headers. For example, we do not need to quote names containing things like commas or parentheses.

Quoted 5 lines
Quoted 1 line

Surely that should be ...

Don't you mean:

/me hides

Quoted 5 lines

;-)

Thanks for the quick fix!