diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2018-10-15 02:47:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-16 12:59:57 +0900 |
commit | 564be791f33a72d28497420dafbd3b272b9a1380 (patch) | |
tree | 15e33c63d5997744820bc52bb5fbf38c665eceb6 /t/t5515/refs.br-unconfig_branches-one | |
parent | getpwuid(mingw): initialize the structure only once (diff) | |
download | tgif-564be791f33a72d28497420dafbd3b272b9a1380.tar.xz |
getpwuid(mingw): provide a better default for the user name
We do have the excellent GetUserInfoEx() function to obtain more
detailed information of the current user (if the user is part of a
Windows domain); Let's use it.
Suggested by Lutz Roeder.
To avoid the cost of loading Secur32.dll (even lazily, loading DLLs
takes a non-neglibile amount of time), we use the established technique
to load DLLs only when, and if, needed.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-unconfig_branches-one')
0 files changed, 0 insertions, 0 deletions