From: Junio C Hamano Date: Mon, 13 Oct 2025 15:41:03 GMT Subject: Re: [RFC Outreachy] Teach ci/check-whitespace to flag incomplete lines as an error Message-ID: In-Reply-To: Bello Olamide writes: >> we want. We need a mechanism that notices and warns when a commit >> makes a file, which used to end with a newline, end in an incomplete >> line. > > Thank you for the clarity. This would mean to compare the relevant files in the > current commit with its parent commit and report when the current commit removes > the new line at the end of file which was present in the parent commit. > > But how about when a file is newly added and lacks the new line? Yes, you should notice and flag any new incomplete line that did not exist before that are added by the commit.