#git #version-control #git-commit #string #diff #hunks #hunk

app hunktool

A tool for finding strings in git patches/history

3 releases (breaking)

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

#903 in Development tools

MPL-2.0 license

65KB
892 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

~0.2–8.5MB
~49K SLoC