summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: abda522)
raw | patch | inline | side by side (parent: abda522)
author | Theodore Ts'o <tytso@mit.edu> | |
Tue, 8 May 2007 13:28:26 +0000 (09:28 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 9 May 2007 05:47:17 +0000 (22:47 -0700) |
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
index 24f9655fef8b9acbeb239554d55585480a0eede7..840dd81b8192a8f03572196e4b057f1bc8ad9317 100644 (file)
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
The size of the window used by gitlink:git-pack-objects[1] when no
window size is given on the command line. Defaults to 10.
+pack.depth::
+ The maximum delta depth used by gitlink:git-pack-objects[1] when no
+ maximum depth is given on the command line. Defaults to 10.
+
pull.octopus::
The default merge strategy to use when pulling multiple branches
at once.
index d9e11c65344a52fd81023e26cc1535ac825106dd..5a7204c9fba1c104444103e471da4f86f1a8152f 100644 (file)
it too deep affects the performance on the unpacker
side, because delta data needs to be applied that many
times to get to the necessary object.
- The default value for both --window and --depth is 10.
+ The default value for --window is 10 and --depth is 10.
--incremental::
This flag causes an object already in a pack ignored
index d39abc126dec70108625af13d11541b771c8e85d..0d70c9f78240a5ca194168a1c83a926dcb97443f 100644 (file)
space. `--depth` limits the maximum delta depth; making it too deep
affects the performance on the unpacker side, because delta data needs
to be applied that many times to get to the necessary object.
- The default value for both --window and --depth is 10.
+ The default value for --window is 10 and --depth is 10.
Configuration
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 7bff8eadd8d9d4edb146de97be70e9f08e7684a0..79d92289250af25c0518a2fb1877041e0ce59f86 100644 (file)
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
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;
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);
}
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;