In the context of git (and diff), what is a “hunk”

前端 未结 3 1448
醉梦人生
醉梦人生 2020-12-01 16:16

I was looking for a definition of \"hunk\" while reading some git documentation.

I know it means a description of the difference between two files and that it has

3条回答
  •  孤街浪徒
    2020-12-01 16:45

    And eventually I found this:

    When comparing two files, diff finds sequences of lines common to both files, interspersed with groups of differing lines called hunks.

    here: http://www.gnu.org/software/diffutils/manual/html_node/Hunks.html

    Which was exactly the kind of succinct definition I was looking for. Hopefully this helps someone else out!

提交回复
热议问题