diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-08-10 18:22:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-10 23:39:39 +0200 |
commit | 28e9cf6512cae1b50a2d2003bb59da4392d99e2e (patch) | |
tree | 7481792b7321e263437c6fe3650244db607de6ef /log-tree.c | |
parent | Merge branch 'maint-1.6.3' into maint (diff) | |
download | git-28e9cf6512cae1b50a2d2003bb59da4392d99e2e.tar.xz git-28e9cf6512cae1b50a2d2003bb59da4392d99e2e.zip |
Expose the has_non_ascii() function
This function is useful outside of log-tree.c, too.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
-rw-r--r-- | log-tree.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/log-tree.c b/log-tree.c index 6f73c17d74..a3b4c0692c 100644 --- a/log-tree.c +++ b/log-tree.c @@ -168,18 +168,6 @@ static unsigned int digits_in_number(unsigned int number) return result; } -static int has_non_ascii(const char *s) -{ - int ch; - if (!s) - return 0; - while ((ch = *s++) != '\0') { - if (non_ascii(ch)) - return 1; - } - return 0; -} - void get_patch_filename(struct commit *commit, int nr, const char *suffix, struct strbuf *buf) { |