author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sun, 28 Dec 2008 18:45:32 +0000 (19:45 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 29 Dec 2008 09:05:21 +0000 (01:05 -0800) | ||
commit | 6d0e674a575421347abe5749e645ca6dc78c8207 | |
tree | 520bca6d03fe6bf525d218ea4d28805285f1e070 | tree | snapshot |
parent | 159c88e5ae95c5b02298193c1658fac5919c8012 | commit | 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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt | diff | blob | history | |
contrib/completion/git-completion.bash | diff | blob | history | |
diff.c | diff | blob | history | |
diff.h | diff | blob | history | |
t/t4032-diff-inter-hunk-context.sh | [new file with mode: 0755] | blob |
xdiff/xdiff.h | diff | blob | history | |
xdiff/xemit.c | diff | blob | history |