diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-21 22:52:37 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-21 23:00:50 -0800 |
commit | 9ce392f4826558357af2b2c7eb6ad876fdb53a91 (patch) | |
tree | 1fc0cafecbccad13a1252e45d0039fb85026cc65 /diff.c | |
parent | 07f92477227e2a1770dfbb6318caedc4f091f6c1 (diff) | |
download | git-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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |