From: Junio C Hamano Date: Thu, 15 Nov 2007 03:36:11 GMT Subject: Re: [BULLS**T PATCH] Allow Git to work at Insane Bank Corp Message-ID: <7vlk9089jo.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20071115015227.GA2116@spearce.org> "Shawn O. Pearce" writes: > Because Insane Bank Corp is one of the largest banks in the world > all 3rd party software vendors must comply and correct their > applications to not fail when they encounter Desktop.ini in an > application's internal data directory. Or they will lose their > contract with Insane Bank Corp. > > This patch must be applied to Git, since Git is a 3rd party software > product and its global assets are much smaller than those of Insane > Bank Corp. If not applied Git won't be permitted for use. Git could > lose all of its software licenses and support contracts. Git shall > do as Insane Bank Corp requests. .gitignore? ... ducks ... then comes back. > +#ifdef WORK_FOR_INSANE_BANK_CORP > +static inline struct dirent *gitreaddir(DIR *dirp) > +{ > + struct dirent *r; > + while ((r = readdir(dirp))) { > + if (!strcasecmp(r->d_name, "Desktop.ini")) > + continue; > + } > + return r; > +} > +#define readdir gitreaddir > +#endif Something like this could be used as an emulation layer for case-corrupting filesystems ;-)