diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-04-16 19:46:41 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-04-16 19:46:41 +0400 |
commit | a50086d174658914d4d6462afbc83b02825b1f5b (patch) | |
tree | e8daa1c7bf678222cf351445179837bed7db3a72 /src/filter.h | |
parent | 5b9fac39d8a76b9139667c26a63e6b3f204b3977 (diff) | |
parent | f124ebd457bfbf43de3516629aaba5a279636e04 (diff) |
Merge branch 'development'v0.18.0
Diffstat (limited to 'src/filter.h')
-rw-r--r-- | src/filter.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/src/filter.h b/src/filter.h index 66e370aef..42a44ebdb 100644 --- a/src/filter.h +++ b/src/filter.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 the libgit2 contributors + * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. @@ -31,14 +31,6 @@ typedef enum { GIT_CRLF_AUTO, } git_crlf_t; -typedef struct { - /* NUL, CR, LF and CRLF counts */ - unsigned int nul, cr, lf, crlf; - - /* These are just approximations! */ - unsigned int printable, nonprintable; -} git_text_stats; - /* * FILTER API */ @@ -96,24 +88,7 @@ extern void git_filters_free(git_vector *filters); /* Strip CRLF, from Worktree to ODB */ extern int git_filter_add__crlf_to_odb(git_vector *filters, git_repository *repo, const char *path); - -/* - * PLAINTEXT API - */ - -/* - * Gather stats for a piece of text - * - * Fill the `stats` structure with information on the number of - * unreadable characters, carriage returns, etc, so it can be - * used in heuristics. - */ -extern void git_text_gather_stats(git_text_stats *stats, const git_buf *text); - -/* - * Process `git_text_stats` data generated by `git_text_stat` to see - * if it qualifies as a binary file - */ -extern int git_text_is_binary(git_text_stats *stats); +/* Add CRLF, from ODB to worktree */ +extern int git_filter_add__crlf_to_workdir(git_vector *filters, git_repository *repo, const char *path); #endif |