Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-09-12 03:38:33 +0400
committerRussell Belfer <rb@github.com>2013-09-17 20:31:45 +0400
commit4b11f25a4fbb6952284e037a70e2d61fde841ab6 (patch)
tree41929ce26c3c41183b3fc221927afb67444eadf2 /src/crlf.c
parent40cb40fab93281c808255d980bbe81a18a4d9e9a (diff)
Add ident filter
This adds the ident filter (that knows how to replace $Id$) and tweaks the filter APIs and code so that git_filter_source objects actually have the updated OID of the object being filtered when it is a known value.
Diffstat (limited to 'src/crlf.c')
-rw-r--r--src/crlf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/crlf.c b/src/crlf.c
index 99c154f70..f61a870da 100644
--- a/src/crlf.c
+++ b/src/crlf.c
@@ -324,11 +324,6 @@ static void crlf_cleanup(
git__free(payload);
}
-static void crlf_shutdown(git_filter *self)
-{
- git__free(self);
-}
-
git_filter *git_crlf_filter_new(void)
{
struct crlf_filter *f = git__calloc(1, sizeof(struct crlf_filter));
@@ -336,7 +331,7 @@ git_filter *git_crlf_filter_new(void)
f->f.version = GIT_FILTER_VERSION;
f->f.attributes = "crlf eol text";
f->f.initialize = NULL;
- f->f.shutdown = crlf_shutdown;
+ f->f.shutdown = git_filter_free;
f->f.check = crlf_check;
f->f.apply = crlf_apply;
f->f.cleanup = crlf_cleanup;