]> git.ipfire.org Git - thirdparty/git.git/commit
date.c: switch to reentrant {gm,local}time_r
authorDoan Tran Cong Danh <congdanhqx@gmail.com>
Thu, 28 Nov 2019 12:25:03 +0000 (19:25 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 30 Nov 2019 21:50:48 +0000 (13:50 -0800)
commitccd469450aaf62e6d0ce41a9738823d19d749a78
treee15e54cd4a2d33cf7ff9fbc481410a094c51c0ea
parentd9f6f3b6195a0ca35642561e530798ad1469bd41
date.c: switch to reentrant {gm,local}time_r

Originally, git was intended to be single-thread executable.
`gmtime(3)' and `localtime(3)' can be used in such codebase
for cleaner code.

Overtime, we're employing multithread in our code base.

Let's phase out `gmtime(3)' and `localtime(3)' in favour of
`gmtime_r(3)' and `localtime_r(3)'.

Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c