We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15db4e2 commit 89bb614Copy full SHA for 89bb614
diff-so-fancy
@@ -301,7 +301,17 @@ sub do_dsf_stuff {
301
my $start_line = extract_start_line($line, $input, $context_lines);
302
print file_change_string($file_1,$file_2) . " ${reset_color}${meta_color}\@ $start_line${reset_color}\n";
303
} else {
304
- print file_change_string($file_1,$file_2) . "\n";
+ 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";
315
}
316
317
# Print out the bottom horizontal line of the header
0 commit comments