#version-control #git #git-commit #git-diff #string #filtering #finding

app hunktool

A tool for finding strings in git patches/history

4 releases (2 breaking)

0.4.1 May 23, 2024
0.4.0 Feb 2, 2024
0.3.0 Dec 30, 2023
0.2.1 Oct 20, 2023

#1140 in Development tools

Download history 13/week @ 2024-07-25 4/week @ 2024-08-01 4/week @ 2024-09-19 2/week @ 2024-09-26

228 downloads per month

MPL-2.0 license

66KB
918 lines

hunk

A simple tool for filtering diff hunks.

Usage

To show only hunks that contain PATTERN, run ... | hunk PATTERN where ... produces a git-compatible diff.

Examples

Show hunks from the latest 10 commits of the current git branch that contain the string "player": git log -p -n 10 --color | hunk player

Building

cargo build

Testing

cargo test

Dependencies

~1.2–7.5MB
~55K SLoC