From: Kristoffer Haugsbakk Date: Tue, 29 Oct 2024 20:53:37 GMT Subject: Re: [PATCH 2/2] strbuf: retire strbuf_commented_lines() Message-ID: <7a0520b4-2530-4660-a858-1def0c8d6de2@app.fastmail.com> In-Reply-To: <20240912205301.1809355-3-gitster@pobox.com> On Thu, Sep 12, 2024, at 22:53, Junio C Hamano wrote: > The API allows the caller to pass any string as the comment prefix, > but in reality, everybody passes the comment_line_str from the > environment. > > Replace this overly flexible API with strbuf_comment_lines() that > does not allow customization of the comment_line_str (usually '#' > but can be configured via the core.commentChar). core.commentChar or core.commentString. -- Kristoffer Haugsbakk