Re: git blame not respecting --find-copies-harder ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Thursday, July 31, 2008 - 12:05 am

Jeff King <peff@peff.net> writes:


Sigh...

We can probably pick up the result revision parser parsed out of
revs.diffopt, and then tweak "opt" with it, perhaps like this.

 builtin-blame.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/builtin-blame.c b/builtin-blame.c
index 8b6b09b..4ea3431 100644
--- a/builtin-blame.c
+++ b/builtin-blame.c
@@ -2346,6 +2346,10 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
 parse_done:
 	argc = parse_options_end(&ctx);
 
+	if (DIFF_OPT_TST(&revs.diffopt, FIND_COPIES_HARDER))
+		opt |= (PICKAXE_BLAME_COPY | PICKAXE_BLAME_MOVE |
+			PICKAXE_BLAME_COPY_HARDER);
+
 	if (!blame_move_score)
 		blame_move_score = BLAME_DEFAULT_MOVE_SCORE;
 	if (!blame_copy_score)



--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git blame not respecting --find-copies-harder ?, Stephen R. van den Berg, (Wed Jul 30, 2:39 am)
Re: git blame not respecting --find-copies-harder ?, Sverre Rabbelier, (Wed Jul 30, 8:43 am)
Re: git blame not respecting --find-copies-harder ?, Jeff King, (Wed Jul 30, 11:48 pm)
Re: git blame not respecting --find-copies-harder ?, Junio C Hamano, (Thu Jul 31, 12:05 am)
Re: git blame not respecting --find-copies-harder ?, Jeff King, (Thu Jul 31, 12:21 am)
Re: git blame not respecting --find-copies-harder ?, Junio C Hamano, (Thu Jul 31, 12:36 am)
Re: git blame not respecting --find-copies-harder ?, Jeff King, (Thu Jul 31, 1:25 am)
Re: git blame not respecting --find-copies-harder ?, Junio C Hamano, (Thu Jul 31, 1:35 am)
Re: git blame not respecting --find-copies-harder ?, Pierre Habouzit, (Thu Jul 31, 2:01 am)
Re: git blame not respecting --find-copies-harder ?, Jeff King, (Thu Jul 31, 2:03 am)
Re: git blame not respecting --find-copies-harder ?, Jeff King, (Thu Jul 31, 2:05 am)
Re: git blame not respecting --find-copies-harder ?, Pierre Habouzit, (Thu Jul 31, 2:06 am)
Re: git blame not respecting --find-copies-harder ?, Pierre Habouzit, (Thu Jul 31, 2:15 am)
Re: git blame not respecting --find-copies-harder ?, Jeff King, (Thu Jul 31, 2:34 am)
Re: git blame not respecting --find-copies-harder ?, Pierre Habouzit, (Thu Jul 31, 3:22 am)
Re: git blame not respecting --find-copies-harder ?, Jeff King, (Thu Jul 31, 3:33 am)