git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] contacts: introduce --since and --min-percent
@ 2015-01-16 20:58 Ramkumar Ramachandra
  2015-01-16 21:11 ` Eric Sunshine
  2015-01-16 21:23 ` [PATCH v2] " Ramkumar Ramachandra
  0 siblings, 2 replies; 4+ messages in thread
From: Ramkumar Ramachandra @ 2015-01-16 20:58 UTC (permalink / raw)
  To: Git List; +Cc: Junio C Hamano, Eric Sunshine

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 contrib/contacts/git-contacts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/contacts/git-contacts b/contrib/contacts/git-contacts
index dbe2abf..b06f2e1 100755
--- a/contrib/contacts/git-contacts
+++ b/contrib/contacts/git-contacts
@@ -8,12 +8,16 @@
 use strict;
 use warnings;
 use IPC::Open2;
+use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev/;
 
 my $since = '5-years-ago';
 my $min_percent = 10;
 my $labels_rx = qr/Signed-off-by|Reviewed-by|Acked-by|Cc/i;
 my %seen;
 
+my $rv = GetOptions('since=s' => \$since, 'min-percent=i' => \$min_percent);
+exit 1 if (!$rv);
+
 sub format_contact {
 	my ($name, $email) = @_;
 	return "$name <$email>";
-- 
2.2.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-21 17:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 20:58 [PATCH] contacts: introduce --since and --min-percent Ramkumar Ramachandra
2015-01-16 21:11 ` Eric Sunshine
2015-01-16 21:23 ` [PATCH v2] " Ramkumar Ramachandra
2015-01-21 17:09   ` Ramkumar Ramachandra

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).