在git(和diff)的背景下,什么是“大块” [英] In the context of git (and diff), what is a "hunk"
问题描述
在阅读一些git文档时,我正在寻找hunk的定义。
我知道这意味着描述两个文件之间的区别,并且它有一个明确定义的格式,但我不能想到一个简洁的定义。
我试着用google搜索,但是有很多虚假的点击。
最终我找到了这个:
lockquote
在比较两个文件时,diff会查找两个文件共有的行的序列,并穿插着称为hunk的不同行。
这里:
http://www.gnu.org/software /diffutils/manual/html_node/Hunks.html
这正是我寻找的简洁定义。希望这可以帮助其他人!
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 a well defined format, but I couldn't call to mind a succinct definition.
I tried searching with google, but there were a lot of somewhat spurious hits.
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!
这篇关于在git(和diff)的背景下,什么是“大块”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!