#filter #git #pipeline #version-control #buffer #input #applied

gix-filter

A crate of the gitoxide project implementing git filters

15 releases (breaking)

new 0.11.2 May 22, 2024
0.11.0 Mar 14, 2024
0.8.1 Dec 30, 2023
0.6.0 Oct 12, 2023
0.2.0 Jul 22, 2023

#60 in Algorithms

Download history 57754/week @ 2024-02-01 61793/week @ 2024-02-08 63116/week @ 2024-02-15 63758/week @ 2024-02-22 70278/week @ 2024-02-29 66294/week @ 2024-03-07 75963/week @ 2024-03-14 79338/week @ 2024-03-21 70567/week @ 2024-03-28 63224/week @ 2024-04-04 66645/week @ 2024-04-11 65278/week @ 2024-04-18 65504/week @ 2024-04-25 70869/week @ 2024-05-02 73104/week @ 2024-05-09 52877/week @ 2024-05-16

272,922 downloads per month
Used in 34 crates (5 directly)

MIT/Apache

520KB
11K SLoC

A library for implementing everything needed to deal with git filter pipelines.

Generally, multiple filters are applied in a row forming a pipeline, with each filter being a stage in that pipeline. This pipeline is pre-determined with each stage being configurable.

The transformation on an input buffer goes in two ways: either a filter is applied, or its effects are undone. Differentiating between these states is important to avoid comparing unfiltered buffers with filtered ones, for example.

This crate implements the building blocks in terms of applying and undoing filters, along with logic to decide whether or not to apply such a filter.

Dependencies

~8–18MB
~300K SLoC