Thread (1 message) 1 message, 1 author, 2021-08-10

Re: [PATCH 3/7] grep: typesafe versions of grep_source_init

From: Junio C Hamano <hidden>
Date: 2021-08-10 21:38:32

Jonathan Tan [off-list ref] writes:
grep_source_init() can create "struct grep_source" objects and,
depending on the value of the type passed, some void-pointer parameters have
different meanings. Because one of these types (GREP_SOURCE_OID) will
require an additional parameter in a subsequent patch, take the
opportunity to increase clarity and type safety by replacing this
function with individual functions for each type.
Nice clean-up.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help