From: Eric Wong Date: Sat, 25 Mar 2006 10:43:31 +0000 (-0800) Subject: send-email: use built-in time() instead of /bin/date '+%s' X-Git-Tag: v1.3.0-rc1~6^2~3 X-Git-Url: https://git.octo.it/?p=git.git;a=commitdiff_plain;h=72095d5c3779344de13c47a8b1cb163b2d94126e send-email: use built-in time() instead of /bin/date '+%s' Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index b220d11c..7c27eed7 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -258,8 +258,7 @@ my $message_id_template = "<%s-git-send-email-$message_id_from>"; sub make_message_id { - my $date = `date "+\%s"`; - chomp($date); + my $date = time; my $pseudo_rand = int (rand(4200)); $message_id = sprintf $message_id_template, "$date$pseudo_rand"; #print "new message id = $message_id\n"; # Was useful for debugging