aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-03-25 02:43:31 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-25 16:50:57 -0800
commit72095d5c3779344de13c47a8b1cb163b2d94126e (patch)
treed37d6729d852691ff83830eb839a37d2d9a52443 /git-send-email.perl
parentc150462824008957f568ca7aa05a65b35d860eb9 (diff)
downloadgit-72095d5c3779344de13c47a8b1cb163b2d94126e.tar.gz
git-72095d5c3779344de13c47a8b1cb163b2d94126e.tar.xz
send-email: use built-in time() instead of /bin/date '+%s'
Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index b220d11cc..7c27eed7b 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