diff options
| author | Russell Belfer <rb@github.com> | 2013-03-09 08:09:17 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-03-09 08:09:17 -0800 |
| commit | 57e765b2e828db07bf474897985f1d7e6e47bd79 (patch) | |
| tree | f4c255cfa982becd1392608c1b60ea7c8b15fe97 /tests-clar/diff/tree.c | |
| parent | 0887b580bfe83a9f6e9a8530368a22e478411a0f (diff) | |
| parent | 1aa5318a9ec4f0ec16518d1102b29e5ba94a801a (diff) | |
| download | libgit2-57e765b2e828db07bf474897985f1d7e6e47bd79.tar.gz | |
Merge pull request #1175 from carlosmn/diff-0-ctx
Can't perform diff with no context lines
Diffstat (limited to 'tests-clar/diff/tree.c')
| -rw-r--r-- | tests-clar/diff/tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/diff/tree.c b/tests-clar/diff/tree.c index 902531530..e86f8d538 100644 --- a/tests-clar/diff/tree.c +++ b/tests-clar/diff/tree.c @@ -10,6 +10,8 @@ static diff_expects expect; void test_diff_tree__initialize(void) { GIT_INIT_STRUCTURE(&opts, GIT_DIFF_OPTIONS_VERSION); + /* The default context lines is set by _INIT which we can't use here */ + opts.context_lines = 3; memset(&expect, 0, sizeof(expect)); |
