diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2017-10-29 15:05:28 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2017-11-19 08:20:18 +0100 |
| commit | 7e3faf58cbafd1115d0f4bf6e5a2b422f9ef78f1 (patch) | |
| tree | 378c52d782e0caa42a44f4f60b8e7d1ec4427c16 /include/git2/diff.h | |
| parent | a8f19f819ea5b9a949b439702893f87c2c655141 (diff) | |
| download | libgit2-7e3faf58cbafd1115d0f4bf6e5a2b422f9ef78f1.tar.gz | |
diff: expose the "indent heuristic" in the diff options
We default to off, but we might want to consider changing `GIT_DIFF_NORMAL` to
include it.
Diffstat (limited to 'include/git2/diff.h')
| -rw-r--r-- | include/git2/diff.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h index 75f1e1975..99a94bb6d 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -206,6 +206,12 @@ typedef enum { * can apply given diff information to binary files. */ GIT_DIFF_SHOW_BINARY = (1 << 30), + + /** Use a heuristic that takes indentation and whitespace into account + * which generally can produce better diffs when dealing with ambiguous + * diff hunks. + */ + GIT_DIFF_INDENT_HEURISTIC = (1 << 31), } git_diff_option_t; /** |
