[PATCH] Allow author names with just two letters.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some at Qt Software use aliases which may have only two letters.

One could argue that just one letter should be permitted as well,
but that's none of my concerns. :)
---
 builtin-mailinfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index 1eeeb4d..1adbebd 100644
--- a/builtin-mailinfo.c
+++ b/builtin-mailinfo.c
@@ -35,7 +35,7 @@ static void cleanup_space(struct strbuf *sb);
 static void get_sane_name(struct strbuf *out, struct strbuf *name, struct strbuf *email)
 {
 	struct strbuf *src = name;
-	if (name->len < 3 || 60 < name->len || strchr(name->buf, '@') ||
+	if (name->len < 2 || 60 < name->len || strchr(name->buf, '@') ||
 		strchr(name->buf, '<') || strchr(name->buf, '>'))
 		src = email;
 	else if (name == out)
-- 
1.6.3.3.18.g49902.dirty

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]