author | Jakub Narebski <jnareb@gmail.com> | |
Fri, 24 Jul 2009 22:44:05 +0000 (00:44 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 25 Jul 2009 08:39:16 +0000 (01:39 -0700) | ||
commit | a36817b6e7af625a6f1218a2d57874f5016e2c8d | |
tree | 0b2a9d8b26225b0d5232ede66ac7e82d2e35126a | tree | snapshot |
parent | 3665e7e7f2b210f6896815d563255c364a861a6e | commit | diff |
gitweb: Add author initials in 'blame' view, a la "git gui blame"
For example for "Junio C Hamano" initials would be "JH". Of course
initials are added (below shortened SHA-1 of blamed commit) only if
group of lines that blame the same commit has 2 or more lines in it.
Initials are extracted using i18n /\b([[:upper:]])\B/g regexp.
Additionally initials help to distinguish boundary commits, as they
use bold weight font too (in addition to shortened SHA-1 of commit).
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
For example for "Junio C Hamano" initials would be "JH". Of course
initials are added (below shortened SHA-1 of blamed commit) only if
group of lines that blame the same commit has 2 or more lines in it.
Initials are extracted using i18n /\b([[:upper:]])\B/g regexp.
Additionally initials help to distinguish boundary commits, as they
use bold weight font too (in addition to shortened SHA-1 of commit).
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |