Sync with Git 2.24.1

This commit is contained in:
Junio C Hamano
2019-12-09 22:17:55 -08:00
47 changed files with 992 additions and 88 deletions

View File

@ -452,6 +452,20 @@ char *mingw_query_user_email(void);
#include <inttypes.h>
#endif
/**
* Verifies that the given path is a valid one on Windows.
*
* In particular, path segments are disallowed which
*
* - end in a period or a space (except the special directories `.` and `..`).
*
* - contain any of the reserved characters, e.g. `:`, `;`, `*`, etc
*
* Returns 1 upon success, otherwise 0.
*/
int is_valid_win32_path(const char *path);
#define is_valid_path(path) is_valid_win32_path(path)
/**
* Converts UTF-8 encoded string to UTF-16LE.
*