]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/bisect.c
bisect--helper: convert `*_warning` char pointers to char arrays.
authorTanushree Tumane <tanushreetumane@gmail.com>
Sat, 14 Dec 2019 08:11:24 +0000 (09:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Dec 2019 22:55:36 +0000 (14:55 -0800)
commit7c5cea7242b5c01fdfe006441e5c0b480603f966
treebb2a2eed376d95cbb041106ce615cb879863f580
parent53a06cf39b756eddfe4a2a34da93e3d04eb7b728
bisect--helper: convert `*_warning` char pointers to char arrays.

Instead of using a pointer that points at a constant string,
just give name directly to the constant string; this way, we
do not have to allocate a pointer variable in addition to
the string we want to use.

Let's convert `need_bad_and_good_revision_warning` and
`need_bisect_start_warning` char pointers to char arrays.

Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect--helper.c