diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-01-27 06:26:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-27 12:09:34 -0800 |
commit | d2ef3cb7e29c35362125a61f1d96576c200076f6 (patch) | |
tree | 3107566e1793e7c8ecd773214a132aab1ce2af41 /common-main.c | |
parent | object-name: show date for ambiguous tag objects (diff) | |
download | tgif-d2ef3cb7e29c35362125a61f1d96576c200076f6.tar.xz |
object-name: iterate ambiguous objects before showing header
Change the "The candidates are" header that's shown for ambiguous
objects to be shown after we've iterated over all of the objects.
If we get any errors while doing so we don't want to split up the the
header and the list as a result. The two will now be printed together,
as shown in the updated testcase.
As we're accumulating the lines into as "struct strbuf" before
emitting them we need to add a trailing newline to the call in
show_ambiguous_object(). This and the change from "The candidates
are:" to "The candidates are:\n%s" helps to give translators more
context.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'common-main.c')
0 files changed, 0 insertions, 0 deletions