aboutsummaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2007-05-08 09:28:26 -0400
committerJunio C Hamano <junkio@cox.net>2007-05-08 22:47:17 -0700
commit842aaf93238377976111fc801aaacbf8a491db33 (patch)
treeb218051d53d0f0c6a1a862dd6a9b0092542fe155 /builtin-pack-objects.c
parentabda5227770b39bb4abd8f0b4c1a0f69c2778300 (diff)
downloadgit-842aaf93238377976111fc801aaacbf8a491db33.tar.gz
git-842aaf93238377976111fc801aaacbf8a491db33.tar.xz
Add pack.depth option to git-pack-objects.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 7bff8eadd..79d922892 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -64,6 +64,7 @@ static char tmpname[PATH_MAX];
static unsigned char pack_file_sha1[20];
static int progress = 1;
static int window = 10;
+static int depth = 10;
static int pack_to_stdout;
static int num_preferred_base;
static struct progress progress_state;
@@ -1489,6 +1490,10 @@ static int git_pack_config(const char *k, const char *v)
window = git_config_int(k, v);
return 0;
}
+ if(!strcmp(k, "pack.depth")) {
+ depth = git_config_int(k, v);
+ return 0;
+ }
return git_default_config(k, v);
}
@@ -1584,7 +1589,6 @@ static int adjust_perm(const char *path, mode_t mode)
int cmd_pack_objects(int argc, const char **argv, const char *prefix)
{
- int depth = 10;
int use_internal_rev_list = 0;
int thin = 0;
uint32_t i;