summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2022-01-26 13:05:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-01-26 20:08:53 (GMT)
commit1526d0fcfd20efca24bc96a4bc14c8d5459ec470 (patch)
tree2dcea6100e2a8bb0446cd4ee97005ab8452d22d8 /sequencer.h
parentd6a9f5ea8e97dd9435e5fa02cc129c1b241934f2 (diff)
downloadgit-1526d0fcfd20efca24bc96a4bc14c8d5459ec470.zip
git-1526d0fcfd20efca24bc96a4bc14c8d5459ec470.tar.gz
git-1526d0fcfd20efca24bc96a4bc14c8d5459ec470.tar.bz2
reset_head(): make default_reflog_action optional
This parameter is only needed when a ref is going to be updated and the caller does not pass an explicit reflog message. Callers that are only discarding uncommitted changes in the working tree such as such as "rebase --skip" or create_autostash() do not update any refs so should not have to worry about passing this parameter. This change is not intended to have any user visible changes. The pointer comparison between `oid` and `&head_oid` checks that the caller did not pass an oid to be checked out. As no callers pass RESET_HEAD_RUN_POST_CHECKOUT_HOOK without passing an oid there are no changes to when the post-checkout hook is run. As update_ref() only updates the ref if the oid passed to it differs from the current ref there are no changes to when HEAD is updated. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
0 files changed, 0 insertions, 0 deletions