Skip to content

Commit 75707da

Browse files
rjujugitster
authored andcommitted
gitweb: remove title shortening heuristics
Those heuristics are way outdated and too specific to the kernel project to be useful outside of kernel.org. Since kernel.org doesn't use gitweb anymore and at least one project complained about incorrect behavior, entirely remove them. Signed-off-by: Julien Rouhaud <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bbea4dc commit 75707da

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)