]> git.ipfire.org Git - thirdparty/git.git/commit
reset_head(): factor out ref updates
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 26 Jan 2022 13:05:42 +0000 (13:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Jan 2022 20:08:53 +0000 (12:08 -0800)
commitd6a9f5ea8e97dd9435e5fa02cc129c1b241934f2
tree38528ab17c65f1715e530c9eaba8f31ba9ca12ee
parent1946d45844c65ede4e3a514a5decf16612ad79f0
reset_head(): factor out ref updates

In the next commit we will stop trying to update HEAD when we are
removing uncommitted changes from the working tree. Move the code that
updates the refs to its own function in preparation for that.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reset.c