diff options
| author | Jeff Smith <whydoubt@gmail.com> | 2017-05-24 00:15:24 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-05-24 15:41:51 +0900 |
| commit | 1f44129b21235b92d5261964253d965e2249d582 (patch) | |
| tree | 3bf25cebc98d33bd8864b56c7c8fd332874a3951 | |
| parent | 73e1c299e55df4d6e577c3950fc6d53a8ec2cbef (diff) | |
| download | git-1f44129b21235b92d5261964253d965e2249d582.tar.gz | |
blame: move no_whole_file_rename flag to scoreboard
The no_whole_file_rename flag is used in parts of blame that are being
moved to libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rw-r--r-- | builtin/blame.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 8e676fb933..90c643c7da 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -386,6 +386,7 @@ struct blame_scoreboard { int reverse; int show_root; int xdl_opts; + int no_whole_file_rename; }; static void sanity_check_refcnt(struct blame_scoreboard *); @@ -1411,7 +1412,7 @@ static void pass_blame(struct blame_scoreboard *sb, struct blame_origin *origin, * The first pass looks for unrenamed path to optimize for * common cases, then we look for renames in the second pass. */ - for (pass = 0; pass < 2 - no_whole_file_rename; pass++) { + for (pass = 0; pass < 2 - sb->no_whole_file_rename; pass++) { struct blame_origin *(*find)(struct commit *, struct blame_origin *); find = pass ? find_rename : find_origin; @@ -2889,6 +2890,7 @@ parse_done: sb.show_root = show_root; sb.xdl_opts = xdl_opts; + sb.no_whole_file_rename = no_whole_file_rename; read_mailmap(&mailmap, NULL); |
