]> git.99rst.org Git - git.git/commit
reset: modernize flags passed to `reset_working_tree()`
authorPatrick Steinhardt <redacted>
Wed, 1 Jul 2026 11:35:31 +0000 (13:35 +0200)
committerJunio C Hamano <redacted>
Wed, 1 Jul 2026 16:56:53 +0000 (09:56 -0700)
commit2535b951e07ac0da0d1c6c06bd76effe879c18a4
treee6713aed2b0ffa7599a2d6698ed84c3f89d43198
parent9762e2faf7c7f6781df3b07ed1a56f1b4b99b53c
reset: modernize flags passed to `reset_working_tree()`

The flags passed to `reset_working_tree()` are declared as defines. This
has fallen a bit out of practice nowadays, where we instead prefer to
use enums. Furthermore, the prefix of those flags does not match the
function name anymore after the rename in the preceding commit.

Adapt the code to follow modern best practices and adapt the flag names.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/rebase.c
reset.c
reset.h
sequencer.c
git clone https://git.99rst.org/PROJECT