revert(3p/git): Revert merge of git upstream at v2.26.2
This causes cgit to serve error pages, which is undesirable. This reverts commit5229c9b232, reversing changes made tof2b211131f.
This commit is contained in:
parent
6f8fbf4aa4
commit
93ba78d6f4
1006 changed files with 60537 additions and 148724 deletions
39
third_party/git/compat/mingw.h
vendored
39
third_party/git/compat/mingw.h
vendored
|
|
@ -11,7 +11,7 @@ typedef _sigset_t sigset_t;
|
|||
#undef _POSIX_THREAD_SAFE_FUNCTIONS
|
||||
#endif
|
||||
|
||||
int mingw_core_config(const char *var, const char *value, void *cb);
|
||||
extern int mingw_core_config(const char *var, const char *value, void *cb);
|
||||
#define platform_core_config mingw_core_config
|
||||
|
||||
/*
|
||||
|
|
@ -443,7 +443,7 @@ static inline void convert_slashes(char *path)
|
|||
*path = '/';
|
||||
}
|
||||
#define PATH_SEP ';'
|
||||
char *mingw_query_user_email(void);
|
||||
extern char *mingw_query_user_email(void);
|
||||
#define query_user_email mingw_query_user_email
|
||||
#if !defined(__MINGW64_VERSION_MAJOR) && (!defined(_MSC_VER) || _MSC_VER < 1800)
|
||||
#define PRIuMAX "I64u"
|
||||
|
|
@ -452,27 +452,6 @@ 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
|
||||
*
|
||||
* - correspond to reserved names (such as `AUX`, `PRN`, etc)
|
||||
*
|
||||
* The `allow_literal_nul` parameter controls whether the path `NUL` should
|
||||
* be considered valid (this makes sense e.g. before opening files, as it is
|
||||
* perfectly legitimate to open `NUL` on Windows, just as it is to open
|
||||
* `/dev/null` on Unix/Linux).
|
||||
*
|
||||
* Returns 1 upon success, otherwise 0.
|
||||
*/
|
||||
int is_valid_win32_path(const char *path, int allow_literal_nul);
|
||||
#define is_valid_path(path) is_valid_win32_path(path, 0)
|
||||
|
||||
/**
|
||||
* Converts UTF-8 encoded string to UTF-16LE.
|
||||
*
|
||||
|
|
@ -579,7 +558,7 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen);
|
|||
|
||||
/*
|
||||
* A critical section used in the implementation of the spawn
|
||||
* functions (mingw_spawnv[p]e()) and waitpid(). Initialised in
|
||||
* functions (mingw_spawnv[p]e()) and waitpid(). Intialised in
|
||||
* the replacement main() macro below.
|
||||
*/
|
||||
extern CRITICAL_SECTION pinfo_cs;
|
||||
|
|
@ -598,17 +577,7 @@ extern CRITICAL_SECTION pinfo_cs;
|
|||
int wmain(int argc, const wchar_t **w_argv);
|
||||
int main(int argc, const char **argv);
|
||||
|
||||
/*
|
||||
* For debugging: if a problem occurs, say, in a Git process that is spawned
|
||||
* from another Git process which in turn is spawned from yet another Git
|
||||
* process, it can be quite daunting to figure out what is going on.
|
||||
*
|
||||
* Call this function to open a new MinTTY (this assumes you are in Git for
|
||||
* Windows' SDK) with a GDB that attaches to the current process right away.
|
||||
*/
|
||||
extern void open_in_gdb(void);
|
||||
|
||||
/*
|
||||
* Used by Pthread API implementation for Windows
|
||||
*/
|
||||
int err_win_to_posix(DWORD winerr);
|
||||
extern int err_win_to_posix(DWORD winerr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue