summaryrefslogtreecommitdiff
path: root/git-gui/git-gui.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-18 04:18:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-18 05:02:19 (GMT)
commitbe510cfef3d8344007bd34128ca6eb799b714c8c (patch)
tree4c1136f834d85ca27f5f1870e46352d56927c249 /git-gui/git-gui.sh
parentd7416ecac8508367a8ac35ab74ef09b7707d0c4b (diff)
downloadgit-be510cfef3d8344007bd34128ca6eb799b714c8c.zip
git-be510cfef3d8344007bd34128ca6eb799b714c8c.tar.gz
git-be510cfef3d8344007bd34128ca6eb799b714c8c.tar.bz2
send-email: make message-id generation a bit more robust
Earlier code took Unix time and appended a few random digits. If you are firing off many messages within a second, you could issue the same id to different messages, which is a no-no. If you send out 31 messages within a single second, with random integer taken out of rand(4200), you have about 10% chance of producing the same message ID. This fixes the problem by uses a prefix string which is constant-per-invocation (time and pid), with a serial number for each message generated by the process appended at the end. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/git-gui.sh')
0 files changed, 0 insertions, 0 deletions