File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -616,13 +616,12 @@ sub is_windows {
616
616
617
617
# Return value is whether this is the first time they've run d-s-f
618
618
sub check_first_run {
619
- my $i = git_config();
620
619
my $ret = 0;
621
620
622
621
# If first-run is not set, or it's set to "true"
623
- my $first_run = git_config_boolean($i -> { ' diff-so-fancy' } -> { ' first-run' } );
622
+ my $first_run = git_config_boolean(' diff-so-fancy. first-run' );
624
623
# See if they're previously set SOME diff-highlight colors
625
- my $has_dh_colors = boolean ($i -> {' color.diff-highlight.oldnormal' } || $i -> {' color.diff-highlight.newnormal' });
624
+ my $has_dh_colors = git_config_boolean ($i -> {' color.diff-highlight.oldnormal' }) || git_config_boolean( $i -> {' color.diff-highlight.newnormal' });
626
625
627
626
if (!$first_run || $has_dh_colors ) {
628
627
return 0;
You can’t perform that action at this time.
0 commit comments