summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-12-27 10:18:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-27 20:38:35 (GMT)
commit06dba2b0235293e84157a59fa22dc89baa336166 (patch)
tree05d6f234f4b54b19435c021a279155dd68e1f5e6 /diff.c
parent6de5aafdd12104df3d10ef54ac74723a41174290 (diff)
downloadgit-06dba2b0235293e84157a59fa22dc89baa336166.zip
git-06dba2b0235293e84157a59fa22dc89baa336166.tar.gz
git-06dba2b0235293e84157a59fa22dc89baa336166.tar.bz2
Use DIFF_DETECT_RENAME for detect_rename assignments
This field can have two values (2 for copy). Use this name instead for clarity. Many places have already used this constant. Note, the detect_rename assignments in merge-recursive.c remain unchanged because it's actually a boolean there. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 74283d9..4359e3b 100644
--- a/diff.c
+++ b/diff.c
@@ -218,7 +218,7 @@ static int parse_ws_error_highlight(const char *arg)
*/
void init_diff_ui_defaults(void)
{
- diff_detect_rename_default = 1;
+ diff_detect_rename_default = DIFF_DETECT_RENAME;
}
int git_diff_heuristic_config(const char *var, const char *value, void *cb)