diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-07-01 13:35:33 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-03 10:32:33 -0700 |
| commit | b2ebb7803bafb581649de1b51eb3184ab7fe3463 (patch) | |
| tree | 9ef93a0ba5425b3d317e0ae07e95adba282621a2 /contrib/persistent-https | |
| parent | 8e435d99b56e8c7be32d7f46101d18e88b9fc4ac (diff) | |
reset: introduce ability to skip updating HEAD
In a subsequent commit we'll introduce a new caller to
`reset_working_tree()` that really only wants to update the index and
working tree, without updating any references. Introduce a new flag that
makes the caller opt in to updating HEAD and adapt all callers to set
that flag.
Note that in a previous iteration we instead introduced a flag that made
callers opt out of updating any references. This was somewhat awkward
though because we already have the `UPDATE_ORIG_HEAD` flag, so the
result was somewhat inconsistent.
Suggested-by: Phillip Wood <phillip.wood123@gmail.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
[jc: fixed-up a typo pointed out by Christian]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
