Merge branch 'jr/gitweb-title-shortening'
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
This commit is contained in:
commit
dcdcc375a4
@ -3560,23 +3560,6 @@ sub parse_commit_text {
|
||||
$title =~ s/^ //;
|
||||
if ($title ne "") {
|
||||
$co{'title'} = chop_str($title, 80, 5);
|
||||
# remove leading stuff of merges to make the interesting part visible
|
||||
if (length($title) > 50) {
|
||||
$title =~ s/^Automatic //;
|
||||
$title =~ s/^merge (of|with) /Merge ... /i;
|
||||
if (length($title) > 50) {
|
||||
$title =~ s/(http|rsync):\/\///;
|
||||
}
|
||||
if (length($title) > 50) {
|
||||
$title =~ s/(master|www|rsync)\.//;
|
||||
}
|
||||
if (length($title) > 50) {
|
||||
$title =~ s/kernel.org:?//;
|
||||
}
|
||||
if (length($title) > 50) {
|
||||
$title =~ s/\/pub\/scm//;
|
||||
}
|
||||
}
|
||||
$co{'title_short'} = chop_str($title, 50, 5);
|
||||
last;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user