diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2017-12-27 17:18:35 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-27 12:38:35 -0800 |
commit | 06dba2b0235293e84157a59fa22dc89baa336166 (patch) | |
tree | 05d6f234f4b54b19435c021a279155dd68e1f5e6 /diff.c | |
parent | t2203: test status output with porcelain v2 format (diff) | |
download | tgif-06dba2b0235293e84157a59fa22dc89baa336166.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |