All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow author names with just two letters.
@ 2009-07-10 20:01 Oswald Buddenhagen
  2009-07-29 14:55 ` Oswald Buddenhagen
  0 siblings, 1 reply; 2+ messages in thread
From: Oswald Buddenhagen @ 2009-07-10 20:01 UTC (permalink / raw)
  To: git

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Allow author names with just two letters.
  2009-07-10 20:01 [PATCH] Allow author names with just two letters Oswald Buddenhagen
@ 2009-07-29 14:55 ` Oswald Buddenhagen
  0 siblings, 0 replies; 2+ messages in thread
From: Oswald Buddenhagen @ 2009-07-29 14:55 UTC (permalink / raw)
  To: git

moin,

just in case this wasn't clear: the patch below is a request to merge,
or at least an rfc. you see, i have a rather bad standing in getting my
colleagues to use rebase if git mangles their commits in the process. ;)
thanks

greetings


On Fri, Jul 10, 2009 at 10:01:34PM +0200, Oswald Buddenhagen wrote:
> 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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-29 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-10 20:01 [PATCH] Allow author names with just two letters Oswald Buddenhagen
2009-07-29 14:55 ` Oswald Buddenhagen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.