]> git.ipfire.org Git - thirdparty/git.git/commit
update-ref: move `print_rejected_refs()` up
authorKarthik Nayak <karthik.188@gmail.com>
Mon, 4 May 2026 17:44:09 +0000 (19:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 May 2026 07:34:07 +0000 (16:34 +0900)
commit637989cdec77b95fb0743cf433873253cec5ae0f
treed38e74f1ec8d6019532f72602dbcf799b7746c78
parente99e98e600181ddf431b267c2887358b3556e45c
update-ref: move `print_rejected_refs()` up

The `print_rejected_refs()` function is used to print any rejected refs
when using git-updated-ref(1) with the '--batch-updates' option. In the
following commit, we'll need to use this function in another place, so
move the function up to avoid a separate forward declaration.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c