From: Jeff King Date: Tue, 19 May 2026 01:19:01 +0000 (-0400) Subject: quote.h: bump strvec forward declaration to the top X-Git-Tag: v2.55.0-rc0~48^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a1964c22a2655a4c995d9a8bbf25512b1a2bc16;p=thirdparty%2Fgit.git quote.h: bump strvec forward declaration to the top We usually put forward declarations at the top of header files, rather than next to the functions that need them. In theory placing it next to the function has some explanatory value, but it's also just as likely to become stale if other uses are added. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/quote.h b/quote.h index 0300c29104..400397b11a 100644 --- a/quote.h +++ b/quote.h @@ -2,6 +2,7 @@ #define QUOTE_H struct strbuf; +struct strvec; extern int quote_path_fully; @@ -77,7 +78,6 @@ int sq_dequote_to_argv(char *arg, const char ***argv, int *nr, int *alloc); * still modify arg in place, but unlike sq_dequote_to_argv, the strvec * will duplicate and take ownership of the strings. */ -struct strvec; int sq_dequote_to_strvec(char *arg, struct strvec *); int unquote_c_style(struct strbuf *, const char *quoted, const char **endp);