Code

send-email: use built-in time() instead of /bin/date '+%s'
authorEric Wong <normalperson@yhbt.net>
Sat, 25 Mar 2006 10:43:31 +0000 (02:43 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 26 Mar 2006 00:50:57 +0000 (16:50 -0800)
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl

index b220d11cc1e92e50b3c25460f84ab5db12a04da1..7c27eed7ba3b93380e0751a9416b83e1abe77212 100755 (executable)
@@ -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