]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/refs: add "update" subcommand
authorPatrick Steinhardt <ps@pks.im>
Mon, 6 Jul 2026 13:27:06 +0000 (15:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2026 14:45:57 +0000 (07:45 -0700)
commit2540e35bc185635d7428a1cd0f55caacd68b8ff6
treeb98964ce0c16b8479c3fdf538400ca2760ac9f01
parentb3355995cf5adfa4b0b0c6dfddf4449f457e3912
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]