Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
pretty.c: mark file-local function static
author
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Jan 2010 06:23:35 +0000
(22:23 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Jan 2010 07:16:16 +0000
(23:16 -0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.h
patch
|
blob
|
history
pretty.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f1c92c6
)
diff --git
a/commit.h
b/commit.h
index e5332efcfc9449e0f3af4d6c49be63adfeb138b1..24128d7a2a0007d5aee2543624f0297d77860ea6 100644
(file)
--- a/
commit.h
+++ b/
commit.h
@@
-73,7
+73,6
@@
struct pretty_print_context
struct reflog_walk_info *reflog_info;
};
-extern int non_ascii(int);
extern int has_non_ascii(const char *text);
struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
extern char *reencode_commit_message(const struct commit *commit,
diff --git
a/pretty.c
b/pretty.c
index 8f5bd1ab7f119715564fb13cb74de3937d1a3774..9001379a9dd93818e962ae73cdf85dc178804256 100644
(file)
--- a/
pretty.c
+++ b/
pretty.c
@@
-83,7
+83,7
@@
static int get_one_line(const char *msg)
}
/* High bit set, or ISO-2022-INT */
-int non_ascii(int ch)
+
static
int non_ascii(int ch)
{
return !isascii(ch) || ch == '\033';
}