From: Junio C Hamano Date: Thu, 21 Jun 2012 06:35:25 GMT Subject: [PATCH v2 2/9] sha1_name.c: clarify what "fake" is for in find_short_object_filename() Message-ID: <1340260532-11378-3-git-send-email-gitster@pobox.com> In-Reply-To: <1340260532-11378-1-git-send-email-gitster@pobox.com> Signed-off-by: Junio C Hamano --- sha1_name.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sha1_name.c b/sha1_name.c index 5b0c845..4cbca34 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; -- 1.7.11.2.gd284367