path: root/t/
AgeCommit message (Collapse)Author
2017-01-12diff: add interhunk context config optionVegard Nossum
The --inter-hunk-context= option was added in commit 6d0e674a5754 ("diff: add option to show context between close hunks"). This patch allows configuring a default for this option. Signed-off-by: Vegard Nossum <> Signed-off-by: Junio C Hamano <>
2008-12-29diff: add option to show context between close hunksRené Scharfe
Merge two hunks if there is only the specified number of otherwise unshown context between them. For --inter-hunk-context=1, the resulting patch has the same number of lines but shows uninterrupted context instead of a context header line in between. Patches generated with this option are easier to read but are also more likely to conflict if the file to be patched contains other changes. This patch keeps the default for this option at 0. It is intended to just make the feature available in order to see its advantages and downsides. Signed-off-by: Rene Scharfe <> Signed-off-by: Junio C Hamano <>