sha1_name.c: clarify what "fake" is for in find_short_object_filename()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
249c8f4a16
commit
274ac009f4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user