зеркало из https://github.com/microsoft/git.git
gitweb: git_print_log: signoff line is non-empty line
This correct minor error in git_print_log that didn't add final empty line when requested, if commit log ended with signoff. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
6fd92a28eb
Коммит
fba20b429a
|
@ -1407,6 +1407,7 @@ sub git_print_log ($;%) {
|
|||
foreach my $line (@$log) {
|
||||
if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
|
||||
$signoff = 1;
|
||||
$empty = 0;
|
||||
if (! $opts{'-remove_signoff'}) {
|
||||
print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
|
||||
next;
|
||||
|
|
Загрузка…
Ссылка в новой задаче