]> git.ipfire.org Git - thirdparty/git.git/commit - userdiff.c
userdiff: support new keywords in PHP hunk header
authorKana Natsuno <dev@whileimautomaton.net>
Tue, 3 Jul 2018 13:15:40 +0000 (22:15 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jul 2018 21:59:28 +0000 (14:59 -0700)
commit1ab631647e3addd247c5482e8a3d4c9df7978c62
tree1bbc145b8273ce532ce87863c235fdce1162cf47
parent9992fbd7a1fdcc8fbaf0973a18d0eca94e1b7638
userdiff: support new keywords in PHP hunk header

Recent version of PHP supports interface, trait, abstract class and
final class.  This patch fixes the PHP hunk header regexp to support
all of these keywords.

Signed-off-by: Kana Natsuno <dev@whileimautomaton.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018/php-abstract-class [new file with mode: 0644]
t/t4018/php-final-class [new file with mode: 0644]
t/t4018/php-interface [new file with mode: 0644]
t/t4018/php-trait [new file with mode: 0644]
userdiff.c