]> git.ipfire.org Git - thirdparty/git.git/commit - userdiff.c
userdiff-cpp: learn the C++ spaceship operator
authorJohannes Sixt <j6t@kdbg.org>
Sun, 10 Oct 2021 17:03:04 +0000 (17:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Oct 2021 22:24:21 +0000 (15:24 -0700)
commitc4fdba338355d80e40b84391af9f8c022d4f21af
treede9dcbd5a9df019265ee907fb7ebbc385f4016d7
parent637b80cd6a2a73eb6723aec2f52aed1135d99de4
userdiff-cpp: learn the C++ spaceship operator

Since C++20, the language has a generalized comparison operator <=>.
Teach the cpp driver not to separate it into <= and > tokens.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4034/cpp/expect
userdiff.c