Re: with git update-ref?
- From
- Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
- Date
- Oct 13, 2024, 10:07 UTC
- Message-ID
- <16d2d47c-5887-4658-b6db-996dac075828@app.fastmail.com>
- In-Reply-To
- <f7a7046c-020a-4365-baf4-49184bd2c60b@gmail.com>
On Sun, Oct 13, 2024, at 11:34, Phillip Wood wrote:
Show 5 quoted lines
>> I do not think update-ref is a tool to modify a symbolic-ref. > > Didn't we add support for symbolic-refs to update-ref with > 'kn/update-ref-symref'? Maybe it only works with --stdin? I've Cc'd > Karthik for clarification on how it is supposed to work.
Yes. The man page says that you can use the `symref-update` command with `--stdin`.
So the issue or confusion here seems to be that you have to use specific commands for symrefs. git-update-ref(1) won’t try to figure it out.
That seems in line with a plumbing command.
-- Kristoffer Haugsbakk