From b6c09c03eba37934871239ff98d88bd023c60b5a Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Fri, 24 Feb 2023 00:09:28 +0000 Subject: pretty.h: move has_non_ascii() declaration from commit.h The function is defined in pretty.c, so this moves the declaration to a more logical place. Signed-off-by: Elijah Newren Signed-off-by: Junio C Hamano --- pretty.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pretty.h') diff --git a/pretty.h b/pretty.h index 9508c22f03..921dd6e0ca 100644 --- a/pretty.h +++ b/pretty.h @@ -153,6 +153,8 @@ int commit_format_is_empty(enum cmit_fmt); /* Make subject of commit message suitable for filename */ void format_sanitized_subject(struct strbuf *sb, const char *msg, size_t len); +int has_non_ascii(const char *text); + /* * Set values of fields in "struct process_trailer_options" * according to trailers arguments. -- cgit v1.2.3