From: Junio C Hamano Date: Wed, 24 Jun 2026 20:19:47 GMT Subject: Re: [PATCH GSoC RFC v13 06/12] connect: refactor packet writing Message-ID: In-Reply-To: Karthik Nayak writes: >> +/* >> + * Writes a command along with the requested server capabilities/features into a >> + * request buffer. >> + */ >> struct string_list; > > The comment should be above the function and not the forward > declaration. > > While we're here, why not `#include "string-list.h"` and remove the > forward declaration, is there a circular dependency? Isn't it to avoid unnecessary include? When the header itself only needs to know about the presence of the type, and not the concrete shape of the type (e.g., because it only uses a pointer to that type), it may be overkill to include the entire header file.