Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
blame: move contents_from to scoreboard
author
Jeff Smith
<whydoubt@gmail.com>
Wed, 24 May 2017 05:15:20 +0000
(
00:15
-0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 24 May 2017 06:41:51 +0000
(15:41 +0900)
The argument from --contents 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>
builtin/blame.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
18ec0d6
)
diff --git
a/builtin/blame.c
b/builtin/blame.c
index 643f847efeb7afe29152c5930f7c7940878c5b5e..0955fc125cf251f16d6fc2f734fa6c9ceb62b176 100644
(file)
--- a/
builtin/blame.c
+++ b/
builtin/blame.c
@@
-378,6
+378,9
@@
struct blame_scoreboard {
*/
unsigned move_score;
unsigned copy_score;
+
+ /* use this file's contents as the final image */
+ const char *contents_from;
};
static void sanity_check_refcnt(struct blame_scoreboard *);
@@
-2735,6
+2738,7
@@
int cmd_blame(int argc, const char **argv, const char *prefix)
sb.copy_score = BLAME_DEFAULT_COPY_SCORE;
sb.revs = &revs;
+ sb.contents_from = contents_from;
if (!reverse) {
final_commit_name = prepare_final(&sb);
sb.commits.compare = compare_commits_by_commit_date;