diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-12-19 10:58:27 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-12-19 10:58:27 -0800 |
| commit | 5f212684abb66c9604e745a2296af8c4bb99961c (patch) | |
| tree | 16d25571b9d3d66c5ccf49df359c7adb99a0124c /refs/refs-internal.h | |
| parent | Merge https://github.com/j6t/gitk (diff) | |
| parent | fetch set_head: handle mirrored bare repositories (diff) | |
| download | git-5f212684abb66c9604e745a2296af8c4bb99961c.tar.gz git-5f212684abb66c9604e745a2296af8c4bb99961c.zip | |
Merge branch 'bf/set-head-symref'
When "git fetch $remote" notices that refs/remotes/$remote/HEAD is
missing and discovers what branch the other side points with its
HEAD, refs/remotes/$remote/HEAD is updated to point to it.
* bf/set-head-symref:
fetch set_head: handle mirrored bare repositories
fetch: set remote/HEAD if it does not exist
refs: add create_only option to refs_update_symref_extended
refs: add TRANSACTION_CREATE_EXISTS error
remote set-head: better output for --auto
remote set-head: refactor for readability
refs: atomically record overwritten ref in update_symref
refs: standardize output of refs_read_symbolic_ref
t/t5505-remote: test failure of set-head
t/t5505-remote: set default branch to main
Diffstat (limited to 'refs/refs-internal.h')
| -rw-r--r-- | refs/refs-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 58aa56d1b2..66e66e0fc1 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -674,6 +674,11 @@ struct ref_storage_be { ref_iterator_begin_fn *iterator_begin; read_raw_ref_fn *read_raw_ref; + + /* + * Please refer to `refs_read_symbolic_ref()` for the expected + * behaviour. + */ read_symbolic_ref_fn *read_symbolic_ref; reflog_iterator_begin_fn *reflog_iterator_begin; |
