Skip to content

Commit 7528e87

Browse files
committed
Merge branch 'jr/gitweb-title-shortening' into next
Gitweb had legacy URL shortener that is specific to the way projects hosted on kernel.org used to (but no longer) work, which has been removed. * jr/gitweb-title-shortening: gitweb: remove title shortening heuristics
2 parents 1d2bef9 + 75707da commit 7528e87

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

gitweb/gitweb.perl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3560,23 +3560,6 @@ sub parse_commit_text {
35603560
$title =~ s/^ //;
35613561
if ($title ne "") {
35623562
$co{'title'} = chop_str($title, 80, 5);
3563-
# remove leading stuff of merges to make the interesting part visible
3564-
if (length($title) > 50) {
3565-
$title =~ s/^Automatic //;
3566-
$title =~ s/^merge (of|with) /Merge ... /i;
3567-
if (length($title) > 50) {
3568-
$title =~ s/(http|rsync):\/\///;
3569-
}
3570-
if (length($title) > 50) {
3571-
$title =~ s/(master|www|rsync)\.//;
3572-
}
3573-
if (length($title) > 50) {
3574-
$title =~ s/kernel.org:?//;
3575-
}
3576-
if (length($title) > 50) {
3577-
$title =~ s/\/pub\/scm//;
3578-
}
3579-
}
35803563
$co{'title_short'} = chop_str($title, 50, 5);
35813564
last;
35823565
}

0 commit comments

Comments
 (0)