Skip to content

Commit b6c09c0

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 41771fa commit b6c09c0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

commit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ void free_commit_list(struct commit_list *list);
205205

206206
struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
207207

208-
int has_non_ascii(const char *text);
209208
const char *logmsg_reencode(const struct commit *commit,
210209
char **commit_encoding,
211210
const char *output_encoding);

diffcore-pickaxe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* Copyright (C) 2005 Junio C Hamano
33
* Copyright (C) 2010 Google Inc.
44
*/
5-
#include "cache.h"
5+
#include "git-compat-util.h"
66
#include "diff.h"
77
#include "diffcore.h"
88
#include "xdiff-interface.h"
99
#include "kwset.h"
10-
#include "commit.h"
10+
#include "pretty.h"
1111
#include "quote.h"
1212

1313
typedef int (*pickaxe_fn)(mmfile_t *one, mmfile_t *two,

pretty.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ int commit_format_is_empty(enum cmit_fmt);
153153
/* Make subject of commit message suitable for filename */
154154
void format_sanitized_subject(struct strbuf *sb, const char *msg, size_t len);
155155

156+
int has_non_ascii(const char *text);
157+
156158
/*
157159
* Set values of fields in "struct process_trailer_options"
158160
* according to trailers arguments.

0 commit comments

Comments
 (0)