diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-06-05 03:36:11 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-04 23:07:00 -0700 |
commit | 6bfce93e04d13ecb42008a3cf214cc892f480f0c (patch) | |
tree | 1a6a391821add13a0e57f3e4b6df0a272fb76834 /xdiff-interface.h | |
parent | 20f1eb6b46645115695329a371d412eb3e714865 (diff) | |
download | git-6bfce93e04d13ecb42008a3cf214cc892f480f0c.tar.gz git-6bfce93e04d13ecb42008a3cf214cc892f480f0c.tar.xz |
Move buffer_is_binary() to xdiff-interface.h
We already have two instances where we want to determine if a buffer
contains binary data as opposed to text.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff-interface.h')
-rw-r--r-- | xdiff-interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xdiff-interface.h b/xdiff-interface.h index 191880808..536f4e4d9 100644 --- a/xdiff-interface.h +++ b/xdiff-interface.h @@ -18,5 +18,6 @@ int parse_hunk_header(char *line, int len, int *ob, int *on, int *nb, int *nn); int read_mmfile(mmfile_t *ptr, const char *filename); +int buffer_is_binary(const char *ptr, unsigned long size); #endif |