Skip to content

Commit 89bb614

Browse files
Start of work to implement #351
1 parent 15db4e2 commit 89bb614

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

diff-so-fancy

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,17 @@ sub do_dsf_stuff {
301301
my $start_line = extract_start_line($line, $input, $context_lines);
302302
print file_change_string($file_1,$file_2) . " ${reset_color}${meta_color}\@ $start_line${reset_color}\n";
303303
} else {
304-
print file_change_string($file_1,$file_2) . "\n";
304+
my $extra = "";
305+
306+
# Check if there is any submodule stuff in the header
307+
if ($chunk_str =~ m/Submodule (.*?) contains (.*)/) {
308+
my $module_name = $1 || "";
309+
my $desc = $2 || "";
310+
311+
$extra = " ($desc)";
312+
}
313+
314+
print file_change_string($file_1,$file_2) . "$extra\n";
305315
}
306316

307317
# Print out the bottom horizontal line of the header

0 commit comments

Comments
 (0)