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

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

#864 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

~0.4–8MB
~46K SLoC