]> git.99rst.org Git - git.git/commit
reset: rename `reset_head()`
authorPatrick Steinhardt <redacted>
Wed, 1 Jul 2026 11:35:30 +0000 (13:35 +0200)
committerJunio C Hamano <redacted>
Wed, 1 Jul 2026 16:56:52 +0000 (09:56 -0700)
commit9762e2faf7c7f6781df3b07ed1a56f1b4b99b53c
tree29a39b66898dc1fb4a1bc03b0c5519a81c07b480
parent5ce540bed335005046aad5969e1ae3bb1fc6cde5
reset: rename `reset_head()`

In a subsequent commit we're about to adapt `reset_head()` so that the
reference update to HEAD is optional, only. At this point the function
starts to feel misnamed, as it doesn't necessarily have anything to do
with the HEAD reference anymore. The gist of the function then is that
we reset the working tree to a specific new commit, updating both the
index and the checked-out files.

Rename it to `reset_working_tree()` to better reflect that.

Note that we don't adjust the flags yet. This will happen in a
subsequent commit.

Suggested-by: Phillip Wood <redacted>
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