Re: People unaware of the importance of "git gc"?
Junio C Hamano, Wed, Sep 05, 2007 22:01:37 +0200:
Show 6 quoted lines
> + /*
> + * Quickly check if a "gc" is needed, by estimating how
> + * many loose objects there are. Because SHA-1 is evenly
> + * distributed, we can check only one and get a reasonable
> + * estimate.
> + */
> + if (sizeof(path) <= snprintf(path, sizeof(path), "%s/17", objdir)) {
> + warning("insanely long object directory %.*s", 50, objdir);or a non-POSIX snprintf returning "negative value" (Microsoft)