Skip to content

Commit

Permalink
wip: read config
Browse files Browse the repository at this point in the history
  • Loading branch information
john-cai committed Feb 8, 2023
1 parent 94b5ef6 commit 65c8b2d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions diff.c
Expand Up @@ -3667,8 +3667,12 @@ static void builtin_diff(const char *name_a,
two_diff_algo = check->items[0].value;

if (!ATTR_UNSET(one_diff_algo) && !ATTR_UNSET(two_diff_algo) &&
!strcmp(one_diff_algo, two_diff_algo))
set_diff_algorithm(o, one_diff_algo);
!strcmp(one_diff_algo, two_diff_algo)) {
const char *diff_algorithm;

if (!git_config_string(&diff_algorithm, one_diff_algo, NULL))
set_diff_algorithm(o, diff_algorithm);
}

attr_check_free(check);
}
Expand Down

0 comments on commit 65c8b2d

Please sign in to comment.