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 <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Feb 24, 2023 at 00:09 UTC
b6c09c03eba37934871239ff98d88bd023c60b5a
3 files changed
+4
-3
commit.h
-1
@@ -205,7 +205,6 @@ void free_commit_list(struct commit_list *list);
205
206
struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
207
208
-int has_non_ascii(const char *text);
208
const char *logmsg_reencode(const struct commit *commit,
209
char **commit_encoding,
210
const char *output_encoding);
diffcore-pickaxe.c
+2
-2
@@ -2,12 +2,12 @@
2
* Copyright (C) 2005 Junio C Hamano
3
* Copyright (C) 2010 Google Inc.
4
*/
5
-#include "cache.h"
5
+#include "git-compat-util.h"
6
#include "diff.h"
7
#include "diffcore.h"
8
#include "xdiff-interface.h"
9
#include "kwset.h"
10
-#include "commit.h"
10
+#include "pretty.h"
11
#include "quote.h"
12
13
typedef int (*pickaxe_fn)(mmfile_t *one, mmfile_t *two,
pretty.h
+2
@@ -153,6 +153,8 @@ int commit_format_is_empty(enum cmit_fmt);
153
/* Make subject of commit message suitable for filename */
154
void format_sanitized_subject(struct strbuf *sb, const char *msg, size_t len);
155
156
+int has_non_ascii(const char *text);
157
+
158
/*
159
* Set values of fields in "struct process_trailer_options"
160
* according to trailers arguments.