From: Pranith Kumar <bobby.prani@gmail.com>
To: Joe Perches <joe@perches.com>, linux-kernel@vger.kernel.org (open list)
Subject: [PATCH 1/1] scripts/get_maintainer: increase threshold for --follow to reduce time
Date: Sat, 12 Jul 2014 15:25:28 -0400 [thread overview]
Message-ID: <1405193128-6848-1-git-send-email-bobby.prani@gmail.com> (raw)
get_maintainer tries to follow files with a matching threshold of default 50%.
This is not really necessary as we do not change a file and move it in the same
commit usually. Increasing the threshold to 90% should be sufficient.
I encountered this on a recent commit where I was touching 12 files. Time take
dropped from 24 sec to 12 sec after this change. It can be reduced further by
increasing the threshold, but I think 90% is sufficient.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
scripts/get_maintainer.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index d701627..bc4a69e 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -98,7 +98,7 @@ my %VCS_cmds_git = (
"execute_cmd" => \&git_execute_cmd,
"available" => '(which("git") ne "") && (-e ".git")',
"find_signers_cmd" =>
- "git log --no-color --follow --since=\$email_git_since " .
+ "git log --no-color --follow -M90 --since=\$email_git_since " .
'--numstat --no-merges ' .
'--format="GitCommit: %H%n' .
'GitAuthor: %an <%ae>%n' .
--
1.9.1
next reply other threads:[~2014-07-12 19:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-12 19:25 Pranith Kumar [this message]
2014-07-16 2:23 ` [PATCH 1/1] scripts/get_maintainer: increase threshold for --follow to reduce time Pranith Kumar
2014-07-16 4:08 ` Joe Perches
2014-07-16 4:35 ` Pranith Kumar
2014-07-16 4:50 ` Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1405193128-6848-1-git-send-email-bobby.prani@gmail.com \
--to=bobby.prani@gmail.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).