From: Junio C Hamano Date: Mon, 18 Jun 2012 18:41:03 +0000 (-0700) Subject: sha1_name.c: clarify what "fake" is for in find_short_object_filename() X-Git-Tag: v1.7.12-rc0~22^2~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=274ac009f4613a14d2114259e40c6b523d9b7160;p=git.git sha1_name.c: clarify what "fake" is for in find_short_object_filename() Signed-off-by: Junio C Hamano --- diff --git a/sha1_name.c b/sha1_name.c index e63459bd5..9bb657deb 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -17,6 +17,13 @@ static int find_short_object_filename(int len, const char *name, unsigned char * static struct alternate_object_database *fakeent; if (!fakeent) { + /* + * Create a "fake" alternate object database that + * points to our own object database, to make it + * easier to get a temporary working space in + * alt->name/alt->base while iterating over the + * object databases including our own. + */ const char *objdir = get_object_directory(); int objdir_len = strlen(objdir); int entlen = objdir_len + 43;