]> git.ipfire.org Git - thirdparty/git.git/commit
string-list: use bool instead of int for "exact_match"
authorshejialuo <shejialuo@gmail.com>
Mon, 6 Oct 2025 06:32:23 +0000 (14:32 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Oct 2025 16:11:07 +0000 (09:11 -0700)
commit03ef7762ea12f3b034a2281040bd61c74fd36386
tree8d16d26cba726ee89712b264bb25e024cba922c9
parent2462961280690837670d997bde64bd4ebf8ae66d
string-list: use bool instead of int for "exact_match"

The "exact_match" parameter in "get_entry_index" is used to indicate
whether a string is found or not, which is fundamentally a true/false
value. As we allow the use of bool, let's use bool instead of int to
make the function more semantically clear.

Signed-off-by: shejialuo <shejialuo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
string-list.c
string-list.h