hunktool

Crates.iohunktool
lib.rshunktool
version0.4.1
sourcesrc
created_at2023-10-20 06:49:31.130677
updated_at2024-05-23 04:46:21.546548
descriptionA tool for finding strings in git patches/history
homepagehttps://github.com/TheBicPen/hunk
repositoryhttps://github.com/TheBicPen/hunk.git
max_upload_size
id1008742
size331,717
Alex (TheBicPen)

documentation

README

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

Commit count: 49

cargo fmt