[PATCH 1/2] GIT: Try all addresses for given remote name

2005-07-21 Thread YOSHIFUJI Hideaki /
Hello. Try all addresses for given remote name until it succeeds. Also supports IPv6. Signed-of-by: Hideaki YOSHIFUJI [EMAIL PROTECTED] diff --git a/connect.c b/connect.c --- a/connect.c +++ b/connect.c @@ -96,42 +96,57 @@ static enum protocol get_protocol(const die(I don't handle

Re: [PATCH 1/2] GIT: Try all addresses for given remote name

2005-07-22 Thread YOSHIFUJI Hideaki /
In article [EMAIL PROTECTED] (at Fri, 22 Jul 2005 23:09:13 +0200), Petr Baudis [EMAIL PROTECTED] says: -} +#define STR_(s)# s +#define STR(s) STR_(s) Uh-huh? Why two macros? Well, why any macros at all? : + char *colon, *end; + char *port = STR(DEFAULT_GIT_PORT); +

Re: [PATCH 2/2] GIT: Listen on IPv6 as well, if available.

2005-07-22 Thread YOSHIFUJI Hideaki /
In article [EMAIL PROTECTED] (at Fri, 22 Jul 2005 23:21:51 +0200), Petr Baudis [EMAIL PROTECTED] says: this whole getaddrinfo() magic looks horribly complicated. What's wrong on just adding a similar code (or factoring it out to a function) for IPv6 as there is for IPv4, just s/INET/INET6/?

Re: Make git-ls-files work in subdirectories

2005-08-21 Thread YOSHIFUJI Hideaki /
In article [EMAIL PROTECTED] (at Sun, 21 Aug 2005 16:17:52 -0700 (PDT)), Linus Torvalds [EMAIL PROTECTED] says: getopt() is too limited, and getopt_long() is very glibc-specific and thus inherently evil. And the complexity of doing autoconf or similar is worse than just doing it by hand.