Thomas Rast wrote: > Nanako Shiraishi wrote: >> This removes three functions that are not used anywhere. > [...] >> -void set_usage_routine(void (*routine)(const char *err) NORETURN) > [...] >> -void set_error_routine(void (*routine)(const char *err, va_list params)) > [...] >> -void set_warn_routine(void (*routine)(const char *warn, va_list params)) > > These blame to the following commit: > > commit 39a3f5ea7c0352a530338d30d4e618f6b4db84e4 > Author: Petr Baudis <pasky@xxxxxxx> > Date: Sat Jun 24 04:34:38 2006 +0200 > > Customizable error handlers > > This patch makes the usage(), die() and error() handlers customizable. > Nothing in the git code itself uses that but many other libgit users > (like Git.pm) will. > [...] > > So apparently the intent was that they would only be used from outside > Git. I don't know whether anyone still plans to do that, but they're > certainly not "just" unused. By the way, those functions could be used to implement "git --silent <cmd>", which is equivalent of "git <cmd> 2>/dev/null" (which you don't always can do easily). -- Jakub Narebski Warsaw, Poland ShadeHawk on #git -- 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