summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-05 22:52:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-08-05 22:52:14 (GMT)
commitdcdcc375a40cf0b1b01af89698f144f7e9568d55 (patch)
treee0c0a7325b6dc81a2da261ff26be83f808d99ef5
parentac7f41fb8c9fb07adfc1e54f0ec6a7af247c8e23 (diff)
parent75707da4fa4105c174017d079786e5bba79a96f6 (diff)
downloadgit-dcdcc375a40cf0b1b01af89698f144f7e9568d55.zip
git-dcdcc375a40cf0b1b01af89698f144f7e9568d55.tar.gz
git-dcdcc375a40cf0b1b01af89698f144f7e9568d55.tar.bz2
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
-rwxr-xr-xgitweb/gitweb.perl17
1 files changed, 0 insertions, 17 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 1835487..e66eb3d 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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;
}