#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

#61 in Algorithms

Download history 50964/week @ 2024-01-19 51267/week @ 2024-01-26 58653/week @ 2024-02-02 60475/week @ 2024-02-09 63979/week @ 2024-02-16 63928/week @ 2024-02-23 71055/week @ 2024-03-01 66610/week @ 2024-03-08 78573/week @ 2024-03-15 77276/week @ 2024-03-22 69951/week @ 2024-03-29 62678/week @ 2024-04-05 66536/week @ 2024-04-12 65524/week @ 2024-04-19 66020/week @ 2024-04-26 70714/week @ 2024-05-03

279,719 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