diff options
| author | Ben Straub <bs@github.com> | 2013-10-10 14:53:07 -0700 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2013-10-10 14:53:07 -0700 |
| commit | 364d800b018325914ac01cb5f1b06beb1cab528f (patch) | |
| tree | a4d0d3081c7b6e010c0992ffb01c39bdc852506d /src | |
| parent | 4fd847bb94b5bf8c1e4dce4e0c4798068977f916 (diff) | |
| download | libgit2-364d800b018325914ac01cb5f1b06beb1cab528f.tar.gz | |
Move flag dependencies into docs and code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/blame.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/blame.c b/src/blame.c index 5b0ebd4fe..e698d3941 100644 --- a/src/blame.c +++ b/src/blame.c @@ -184,6 +184,14 @@ static void normalize_options( /* min_line 0 really means 1 */ if (!out->min_line) out->min_line = 1; /* max_line 0 really means N, but we don't know N yet */ + + /* Fix up option implications */ + if (out->flags & GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES) + out->flags |= GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES; + if (out->flags & GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES) + out->flags |= GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES; + if (out->flags & GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES) + out->flags |= GIT_BLAME_TRACK_COPIES_SAME_FILE; } static git_blame_hunk *split_hunk_in_vector( |
