aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/symbolic-ref.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-05-20 11:20:04 -0700
committerJunio C Hamano <gitster@pobox.com>2024-05-20 11:20:04 -0700
commit4beb7a3b066c98d614d402aec32fc87d76206c89 (patch)
tree856e6ccd092b8b18c70868be74f70ee85be814e6 /builtin/symbolic-ref.c
parentThe fifth batch (diff)
parentrefs: remove `create_symref` and associated dead code (diff)
downloadgit-4beb7a3b066c98d614d402aec32fc87d76206c89.tar.gz
git-4beb7a3b066c98d614d402aec32fc87d76206c89.zip
Merge branch 'kn/ref-transaction-symref'
Updates to symbolic refs can now be made as a part of ref transaction. * kn/ref-transaction-symref: refs: remove `create_symref` and associated dead code refs: rename `refs_create_symref()` to `refs_update_symref()` refs: use transaction in `refs_create_symref()` refs: add support for transactional symref updates refs: move `original_update_refname` to 'refs.c' refs: support symrefs in 'reference-transaction' hook files-backend: extract out `create_symref_lock()` refs: accept symref values in `ref_transaction_update()`
Diffstat (limited to 'builtin/symbolic-ref.c')
-rw-r--r--builtin/symbolic-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/symbolic-ref.c b/builtin/symbolic-ref.c
index b2b0a41fb6..81abdd170f 100644
--- a/builtin/symbolic-ref.c
+++ b/builtin/symbolic-ref.c
@@ -83,7 +83,7 @@ int cmd_symbolic_ref(int argc, const char **argv, const char *prefix)
die("Refusing to point HEAD outside of refs/");
if (check_refname_format(argv[1], REFNAME_ALLOW_ONELEVEL) < 0)
die("Refusing to set '%s' to invalid ref '%s'", argv[0], argv[1]);
- ret = !!refs_create_symref(get_main_ref_store(the_repository),
+ ret = !!refs_update_symref(get_main_ref_store(the_repository),
argv[0], argv[1], msg);
break;
default: