From: Karthik Nayak Date: Fri, 26 Jun 2026 14:39:01 GMT Subject: Re: [PATCH GSoC RFC v13 06/12] connect: refactor packet writing Message-ID: In-Reply-To: Junio C Hamano writes: > 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. Indeed that seems to be it. Makes sense to me.