We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4130530 commit 3bbab41Copy full SHA for 3bbab41
diff-so-fancy
@@ -1071,4 +1071,19 @@ sub init_diff_highlight_colors {
1071
$DiffHighlight::OLD_HIGHLIGHT[1] = git_ansi_color(git_config('color.diff-highlight.oldhighlight')) || $DiffHighlight::OLD_HIGHLIGHT[1];
1072
}
1073
1074
+sub debug_log {
1075
+ my $log_line = shift();
1076
+ my $file = "/tmp/diff-so-fancy.debug.log";
1077
+
1078
+ state $fh;
1079
+ if (!$fh) {
1080
+ printf("%sDebug log enabled:%s $file\n", color('orange'), color());
1081
+ open ($fh, ">", $file) or die("Cannot write to $file");
1082
+ }
1083
1084
+ print $fh trim($log_line) . "\n";
1085
1086
+ return 1;
1087
+}
1088
1089
# vim: tabstop=4 shiftwidth=4 noexpandtab autoindent softtabstop=4
0 commit comments