]> Kevux Git Server - rit/commit
mingw: really handle SIGINT
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 4 Jun 2026 16:24:20 +0000 (16:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2026 13:39:57 +0000 (22:39 +0900)
commit363f1d8b3a9c90f13ca6fd9ab0dc47e483e3cc9c
tree202150bd90bc408572aaa2dad2c824c00e758a94
parent179f122aea7074a21ea095337c96801695ba3729
mingw: really handle SIGINT

Previously, we did not install any handler for Ctrl+C, but now we really
want to because the MSYS2 runtime learned the trick to call the
ConsoleCtrlHandler when Ctrl+C was pressed.

With this, hitting Ctrl+C while `git log` is running will only terminate
the Git process, but not the pager. This finally matches the behavior on
Linux and on macOS.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c