sha1_name.c: clarify what "fake" is for in find_short_object_filename()

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jun 18, 2012 at 11:41 UTC 274ac009f4613a14d2114259e40c6b523d9b7160
1 file changed +7
sha1_name.c
+7
@@ -17,6 +17,13 @@ static int find_short_object_filename(int len, const char *name, unsigned char *
17 static struct alternate_object_database *fakeent;
18
19 if (!fakeent) {
20 + /*
21 + * Create a "fake" alternate object database that
22 + * points to our own object database, to make it
23 + * easier to get a temporary working space in
24 + * alt->name/alt->base while iterating over the
25 + * object databases including our own.
26 + */
27 const char *objdir = get_object_directory();
28 int objdir_len = strlen(objdir);
29 int entlen = objdir_len + 43;