]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/refs: add "update" subcommand
authorPatrick Steinhardt <ps@pks.im>
Wed, 17 Jun 2026 10:16:00 +0000 (12:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2026 12:23:54 +0000 (05:23 -0700)
commit8b3bc491d883ff53b47ac589d6ecba93944b0d40
tree7e0c6f25b78f986d6d6e79d445f63a086b290a55
parent52fb7f94fcc20199cc7dc23db8d7f71ec37b80f8
builtin/refs: add "update" subcommand

Add a new "update" subcommand which mirrors `git update-ref <refname>
<oldoid> <newoid>`. This follows the same reasoning as the preceding
commit.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-refs.adoc
builtin/refs.c
t/meson.build
t/t1465-refs-update.sh [new file with mode: 0755]