path: root/xdiff/xdiff.h
diff options
authorRené Scharfe <>2008-12-28 18:45:32 (GMT)
committerJunio C Hamano <>2008-12-29 09:05:21 (GMT)
commit6d0e674a575421347abe5749e645ca6dc78c8207 (patch)
tree520bca6d03fe6bf525d218ea4d28805285f1e070 /xdiff/xdiff.h
parent159c88e5ae95c5b02298193c1658fac5919c8012 (diff)
diff: add option to show context between close hunks
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 <>
Diffstat (limited to 'xdiff/xdiff.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/xdiff/xdiff.h b/xdiff/xdiff.h
index 84fff58..361f802 100644
--- a/xdiff/xdiff.h
+++ b/xdiff/xdiff.h
@@ -84,6 +84,7 @@ typedef long (*find_func_t)(const char *line, long line_len, char *buffer, long
typedef struct s_xdemitconf {
long ctxlen;
+ long interhunkctxlen;
unsigned long flags;
find_func_t find_func;
void *find_func_priv;