Skip to content

Commit 72ee47c

Browse files
edef1cgitster
authored andcommitted
mailinfo: don't discard names under 3 characters
I sometimes receive patches from people with short mononyms, and in my cultural environment these are not uncommon. To my dismay, git-am currently discards their names, and replaces them with their email addresses. Link: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ Signed-off-by: edef <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 48bf2fa commit 72ee47c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mailinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static void cleanup_space(struct strbuf *sb)
1919
static void get_sane_name(struct strbuf *out, struct strbuf *name, struct strbuf *email)
2020
{
2121
struct strbuf *src = name;
22-
if (name->len < 3 || 60 < name->len || strpbrk(name->buf, "@<>"))
22+
if (!name->len || 60 < name->len || strpbrk(name->buf, "@<>"))
2323
src = email;
2424
else if (name == out)
2525
return;

0 commit comments

Comments
 (0)