]> git.ipfire.org Git - thirdparty/git.git/commit
reset: modernize flags passed to `reset_head()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 3 Jun 2026 16:14:02 +0000 (18:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jun 2026 00:04:24 +0000 (09:04 +0900)
commitc42a3ab4183139d7d5a71ce15d2ce696a4749035
treec0fae7678a19cea630c1073f43b20b530ebf4f05
parentd259bfaeee597edd49abfa45de80746864aa9e4f
reset: modernize flags passed to `reset_head()`

The flags passed to `reset_head()` are declared as defines. This has
fallen a bit out of practice nowadays, where we instead prefer to use
enums.

Modernize the code accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
reset.c
reset.h
sequencer.c