]> git.ipfire.org Git - thirdparty/git.git/commit - t/t1400-update-ref.sh
update-ref: use {old,new}-oid instead of {old,new}value
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 2 Apr 2024 06:49:14 +0000 (08:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2024 17:20:28 +0000 (10:20 -0700)
commit67e943c308d6440b6358531dba67ffba88ec30ae
treefe1fc60f9f584441f3468f73f592c364beb3d693
parentd6fd04375f9196f8b203d442f235bd96a1a068cc
update-ref: use {old,new}-oid instead of {old,new}value

The `git-update-ref` command is used to modify references. The usage of
{old,new}value in the documentation refers to the OIDs. This is fine
since the command only works with regular references which hold OIDs.
But if the command is updated to support symrefs, we'd also be dealing
with {old,new}-refs.

To improve clarity around what exactly {old,new}value mean, let's rename
it to {old,new}-oid.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-update-ref.txt
builtin/update-ref.c
t/t1400-update-ref.sh