diff options
author | Russell Belfer <rb@github.com> | 2013-09-11 16:38:33 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-17 09:31:45 -0700 |
commit | 4b11f25a4fbb6952284e037a70e2d61fde841ab6 (patch) | |
tree | 41929ce26c3c41183b3fc221927afb67444eadf2 /src/crlf.c | |
parent | 40cb40fab93281c808255d980bbe81a18a4d9e9a (diff) | |
download | libgit2-4b11f25a4fbb6952284e037a70e2d61fde841ab6.tar.gz |
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.c | 7 |
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; |