custom_helpers.h 524 Bytes
Newer Older
1 2 3 4
#include "git2/sys/filter.h"

extern git_filter *create_bitflip_filter(void);
extern git_filter *create_reverse_filter(const char *attr);
5
extern git_filter *create_erroneous_filter(const char *attr);
6 7 8 9 10 11 12 13 14 15 16 17 18 19

extern int bitflip_filter_apply(
	git_filter     *self,
	void          **payload,
	git_buf        *to,
	const git_buf  *from,
	const git_filter_source *source);

extern int reverse_filter_apply(
	git_filter     *self,
	void          **payload,
	git_buf        *to,
	const git_buf  *from,
	const git_filter_source *source);