Re: ref: with git update-ref?
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Oct 12, 2024, 06:25 UTC
- Message-ID
- <87ttdhsuqz.fsf@igel.home>
- In-Reply-To
- <D4T9VCF8OS6U.1FMB8P6YU7I3S@ferdinandy.com>
On Okt 11 2024, Bence Ferdinandy wrote:
Show 5 quoted lines
> the documentation for `git update-ref` has this sentence: > >> It also allows a "ref" file to be a symbolic pointer to another >> ref file by starting with the four-byte header sequence of >> "ref:".
This is about the format of the reference to be updated, not the <new-oid> argument.
See gitglossary(1):
symref
Symbolic reference: instead of containing the SHA-1 id itself, it
is of the format ref: refs/some/thing and when referenced, it
recursively dereferences to this reference. HEAD is a prime
example of a symref. Symbolic references are manipulated with the
git-symbolic-ref(1) command.-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."