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

gix-filter

A crate of the gitoxide project implementing git filters

14 releases (breaking)

0.11.1 Apr 13, 2024
0.11.0 Mar 14, 2024
0.10.0 Feb 25, 2024
0.8.1 Dec 30, 2023
0.2.0 Jul 22, 2023

#62 in Algorithms

Download history 50005/week @ 2024-01-25 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 57329/week @ 2024-05-09

269,683 downloads per month
Used in 33 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–17MB
~296K SLoC