hunk

One block of nearby changed lines in a diff, shown with a few unchanged lines around it for context.

In more detail

Each hunk starts with a header such as @@ -1,3 +1,4 @@ giving the line numbers in the old and new versions. git add --patch lets you stage hunk by hunk.

Related terms

Taught in

References