userdiff: support Python async functions
authorJosh Holland <anowlcalledjosh@gmail.com>
Tue, 19 Nov 2019 15:08:10 +0000 (15:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Nov 2019 07:31:43 +0000 (16:31 +0900)
commit077a1fda82b237c16eb10bd988650468683a94b5
tree3dc2a504b62249c0b4a7336a58d4e9dccee14660
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
userdiff: support Python async functions

Python's async functions (declared with "async def" rather than "def")
were not being displayed in hunk headers. This commit teaches git about
the async function syntax, and adds tests for the Python userdiff regex.

Signed-off-by: Josh Holland <anowlcalledjosh@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018/python-async-def [new file with mode: 0644]
t/t4018/python-class [new file with mode: 0644]
t/t4018/python-def [new file with mode: 0644]
t/t4018/python-indented-async-def [new file with mode: 0644]
t/t4018/python-indented-class [new file with mode: 0644]
t/t4018/python-indented-def [new file with mode: 0644]
userdiff.c