summaryrefslogtreecommitdiff
path: root/verify-pack.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-10-13 22:38:28 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-13 22:38:28 (GMT)
commit9d835df246e81a6a03e3f633280c45e683e4c673 (patch)
treea878e0f1ab86c47489300b4ae23bc6f8736faddb /verify-pack.c
parent73319032c8d2b2c73138d5caee1d2838fe1305d2 (diff)
downloadgit-9d835df246e81a6a03e3f633280c45e683e4c673.zip
git-9d835df246e81a6a03e3f633280c45e683e4c673.tar.gz
git-9d835df246e81a6a03e3f633280c45e683e4c673.tar.bz2
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>
Diffstat (limited to 'verify-pack.c')
-rw-r--r--verify-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/verify-pack.c b/verify-pack.c
index 80b60a6..c99db9dd 100644
--- a/verify-pack.c
+++ b/verify-pack.c
@@ -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);
}