Skip to content

Commit 9bb5bc7

Browse files
Fix a git error where it wasn't hiding the git diff line
1 parent 3a7accb commit 9bb5bc7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

diff-so-fancy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,13 @@ sub do_dsf_stuff {
163163
#########################
164164
# Look for the filename #
165165
#########################
166-
# $4 $5 $6
167-
} elsif ($line =~ /^${ansi_color_regex}diff (-r|--git|--cc) (.*?) (.+?)(\s|\e|$)/) {
166+
# $4 $5
167+
} elsif ($line =~ /^${ansi_color_regex}diff (-r|--git|--cc) (.+?)(\s|\e|$)/) {
168168

169169
# Mercurial looks like: diff -r 82e55d328c8c hello.c
170170
if ($4 eq "-r") {
171171
$is_mercurial = 1;
172172
$meta_color ||= get_config_color("meta");
173-
$last_file_seen = $6;
174173
# Git looks like: diff --git a/diff-so-fancy b/diff-so-fancy
175174
} else {
176175
$last_file_seen = $5;

0 commit comments

Comments
 (0)