#diff

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

#379 in Development tools

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–8MB
~58K SLoC