aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-21 22:52:37 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-21 23:00:50 -0800
commit9ce392f4826558357af2b2c7eb6ad876fdb53a91 (patch)
tree1fc0cafecbccad13a1252e45d0039fb85026cc65 /diff.c
parent07f92477227e2a1770dfbb6318caedc4f091f6c1 (diff)
downloadgit-9ce392f4826558357af2b2c7eb6ad876fdb53a91.tar.gz
git-9ce392f4826558357af2b2c7eb6ad876fdb53a91.tar.xz
Move diff.renamelimit out of default configuration.
Otherwise we would end up linking all the unneeded stuff into git-daemon only to link with git_default_config. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index ffe8a5523..2e0797bf3 100644
--- a/diff.c
+++ b/diff.c
@@ -15,6 +15,16 @@ static int use_size_cache;
int diff_rename_limit_default = -1;
+int git_diff_config(const char *var, const char *value)
+{
+ if (!strcmp(var, "diff.renamelimit")) {
+ diff_rename_limit_default = git_config_int(var, value);
+ return 0;
+ }
+
+ return git_default_config(var, value);
+}
+
static char *quote_one(const char *str)
{
int needlen;