Promptles
Git & Collaboration

Hunk

intermediate

Definition

One block of nearby changed lines inside a diff (a view of what changed); a single file's diff can contain several hunks, and you can keep or discard each one separately.

In the wild

Claude changed the opening hours near the top of a file and the prices near the bottom, so the diff shows two hunks, and you keep the hours change but undo the prices.

More from Git & Collaboration