summaryrefslogtreecommitdiffstats
path: root/refs.h
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2024-05-07 14:58:57 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-07 17:51:50 +0200
commit300b38e46f951bab8c6c5cb779b59322be321081 (patch)
treef8d52c2cabd8d11ee5b63ef668353b1a0be3ac3a /refs.h
parentrefs: add support for transactional symref updates (diff)
downloadgit-300b38e46f951bab8c6c5cb779b59322be321081.tar.xz
git-300b38e46f951bab8c6c5cb779b59322be321081.zip
refs: use transaction in `refs_create_symref()`
The `refs_create_symref()` function updates a symref to a given new target. To do this, it uses a ref-backend specific function `create_symref()`. In the previous commits, we introduced symref support in transactions. This means we can now use transactions to perform symref updates and don't have to resort to `create_symref()`. Doing this allows us to remove and cleanup `create_symref()`, which we will do in the following commit. Modify the expected error message for a test in 't/t0610-reftable-basics.sh', since the error is now thrown from 'refs.c'. This is because in transactional updates, F/D conflicts are caught before we're in the reference backend. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
0 files changed, 0 insertions, 0 deletions