projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c150462
)
send-email: use built-in time() instead of /bin/date '+%s'
author
Eric Wong
<normalperson@yhbt.net>
Sat, 25 Mar 2006 10:43:31 +0000
(
02:43
-0800)
committer
Junio 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
patch
|
blob
|
history
diff --git
a/git-send-email.perl
b/git-send-email.perl
index
b220d11
..
7c27eed
100755
(executable)
--- 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