From: Junio C Hamano Date: Mon, 11 Sep 2023 17:10:33 GMT Subject: Re: [PATCH v2 2/6] trailer: split process_input_file into separate pieces Message-ID: In-Reply-To: "Linus Arver via GitGitGadget" writes: > From: Linus Arver > > Currently, process_input_file does three things: > > (1) parse the input string for trailers, > (2) print text before the trailers, and > (3) calculate the position of the input where the trailers end. > > Rename this function to parse_trailers(), and make it only do > (1). The caller of this function, process_trailers, becomes responsible > for (2) and (3). These items belong inside process_trailers because they > are both concerned with printing the surrounding text around > trailers (which is already one of the immediate concerns of > process_trailers). Nicely explained and the resulting code reads well. Thanks.