From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oswald Buddenhagen Subject: [PATCH] Allow author names with just two letters. Date: Fri, 10 Jul 2009 22:01:34 +0200 Message-ID: <20090710200134.GA30032@troll08.nokia.trolltech.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Jul 10 22:10:13 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MPMQ8-0006Dn-82 for gcvg-git-2@gmane.org; Fri, 10 Jul 2009 22:10:12 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755216AbZGJUKF (ORCPT ); Fri, 10 Jul 2009 16:10:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751571AbZGJUKF (ORCPT ); Fri, 10 Jul 2009 16:10:05 -0400 Received: from ktown.kde.org ([131.246.120.250]:60789 "HELO ktown.kde.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751340AbZGJUKE (ORCPT ); Fri, 10 Jul 2009 16:10:04 -0400 X-Greylist: delayed 401 seconds by postgrey-1.27 at vger.kernel.org; Fri, 10 Jul 2009 16:10:03 EDT Received: (qmail 12523 invoked from network); 10 Jul 2009 20:03:20 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 10 Jul 2009 20:03:20 -0000 Received: from obuddenh by troll08.nokia.trolltech.de with local (masqmail 0.2.21) id 1MPMHm-7tJ-00 for ; Fri, 10 Jul 2009 22:01:34 +0200 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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