Keep track of whether a pack is local or not

If we want to re-pack just local packfiles, we need to know whether a
particular object is local or not.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Linus Torvalds
2005-10-13 15:38:28 -07:00
committed by Junio C Hamano
parent 73319032c8
commit 9d835df246
3 changed files with 10 additions and 8 deletions

View File

@ -15,12 +15,12 @@ static int verify_one_pack(char *arg, int verbose)
len--;
}
/* Should name foo.idx now */
if ((g = add_packed_git(arg, len)))
if ((g = add_packed_git(arg, len, 1)))
break;
/* No? did you name just foo? */
strcpy(arg + len, ".idx");
len += 4;
if ((g = add_packed_git(arg, len)))
if ((g = add_packed_git(arg, len, 1)))
break;
return error("packfile %s not found.", arg);
}