Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Properly pass `wchar *` type to giterr_set | Boris Barbulovski | 2016-12-06 | 1 | -1/+1 |
| | |||||
* | Properly pass `wchar *` type to giterr_set | Boris Barbulovski | 2016-11-20 | 1 | -1/+1 |
| | |||||
* | threads: introduce `git_thread_exit` | Edward Thomson | 2016-11-18 | 2 | -0/+20 |
| | | | | | | | | | | Introduce `git_thread_exit`, which will allow threads to terminate at an arbitrary time, returning a `void *`. On Windows, this means that we need to store the current `git_thread` in TLS, so that we can set its `return` value when terminating. We cannot simply use `ExitThread`, since Win32 returns `DWORD`s from threads; we return `void *`. | ||||
* | Make sure we use the `C` locale for `regcomp` on macOS. | Arthur Schreiber | 2016-10-06 | 1 | -0/+3 |
| | |||||
* | threads: add platform-independent thread initialization function | Patrick Steinhardt | 2016-06-20 | 2 | -31/+30 |
| | |||||
* | win32: rename pthread.{c,h} to thread.{c,h} | Patrick Steinhardt | 2016-06-20 | 3 | -5/+5 |
| | | | | | | | | | | The old pthread-file did re-implement the pthreads API with exact symbol matching. As the thread-abstraction has now been split up between Unix- and Windows-specific files within the `git_` namespace to avoid symbol-clashes between libgit2 and pthreads, the rewritten wrappers have nothing to do with pthreads anymore. Rename the Windows-specific pthread-files to honor this change. | ||||
* | threads: remove now-useless typedefs | Patrick Steinhardt | 2016-06-20 | 1 | -7/+0 |
| | |||||
* | threads: remove unused function pthread_num_processors_np | Patrick Steinhardt | 2016-06-20 | 2 | -13/+0 |
| | | | | | The function pthread_num_processors_np is currently unused and superseded by the function `git_online_cpus`. Remove the function. | ||||
* | threads: split up OS-dependent rwlock code | Patrick Steinhardt | 2016-06-20 | 2 | -19/+13 |
| | |||||
* | threads: split up OS-dependent thread-condition code | Patrick Steinhardt | 2016-06-20 | 2 | -13/+9 |
| | |||||
* | threads: remove unused function pthread_cond_broadcast | Patrick Steinhardt | 2016-06-20 | 2 | -5/+0 |
| | |||||
* | threads: split up OS-dependent mutex code | Patrick Steinhardt | 2016-06-20 | 2 | -18/+13 |
| | |||||
* | threads: split up OS-dependent thread code | Patrick Steinhardt | 2016-06-20 | 2 | -27/+8 |
| | |||||
* | Split the page size from the mmap alignmentcmn/pool-limit | Carlos Martín Nieto | 2016-03-16 | 1 | -5/+24 |
| | | | | | | | | While often similar, these are not the same on Windows. We want to use the page size on Windows for the pools, but for mmap we need to use the allocation granularity as the alignment. On the other platforms these values remain the same. | ||||
* | nsec: support NDK's crazy nanoseconds | Edward Thomson | 2016-02-25 | 1 | -0/+3 |
| | | | | | | | | Android NDK does not have a `struct timespec` in its `struct stat` for nanosecond support, instead it has a single nanosecond member inside the struct stat itself. We will use that and use a macro to expand to the `st_mtim` / `st_mtimespec` definition on other systems (much like the existing `st_mtime` backcompat definition). | ||||
* | Merge pull request #3606 from ethomson/drop_xp | Carlos Martín Nieto | 2016-02-18 | 1 | -18/+3 |
|\ | | | | | win32: drop xp support in WideCharToMultiByte | ||||
| * | win32: drop xp support in WideCharToMultiByte | Edward Thomson | 2016-02-09 | 1 | -18/+3 |
| | | |||||
* | | fstat: use our custom `stat` | Edward Thomson | 2016-02-16 | 3 | -12/+62 |
| | | |||||
* | | win32: introduce p_timeval that isn't stupid | Edward Thomson | 2016-02-12 | 4 | -5/+13 |
|/ | | | | | Windows defines `timeval` with `long`, which we cannot sanely cope with. Instead, use a custom timeval struct. | ||||
* | Make stat.st_size a __int64 not a uint64_t | Jacques Germishuys | 2015-11-21 | 1 | -1/+1 |
| | |||||
* | Merge pull request #3170 from CmdrMoozy/nsec_fix | Carlos Martín Nieto | 2015-11-12 | 4 | -17/+56 |
|\ | | | | | git_index_entry__init_from_stat: set nsec fields in entry stats | ||||
| * | Merge branch 'master' into nsec_fix_next | Axel Rasmussen | 2015-10-01 | 1 | -8/+15 |
| |\ | |||||
| * | | win32: define our own POSIX struct stat, and support USE_NSEC | Axel Rasmussen | 2015-09-18 | 4 | -17/+56 |
| | | | |||||
* | | | config: add a ProgramData levelcmn/programdata-config | Carlos Martín Nieto | 2015-10-21 | 2 | -0/+11 |
| |/ |/| | | | | | | | This is where portable git stores the global configuration which we can use to adhere to it even though git isn't quite installed on the system. | ||||
* | | win32: propogate filename too long errors | Edward Thomson | 2015-09-22 | 1 | -8/+15 |
|/ | |||||
* | win32: return EACCES in `p_lstat` | Edward Thomson | 2015-09-17 | 1 | -2/+9 |
| | | | | | | Don't coalesce all errors into ENOENT. At least identify EACCES. All callers should be handling this case already, as the POSIX `lstat` will return this. | ||||
* | Merge pull request #3352 from ethomson/hidden | Edward Thomson | 2015-08-28 | 2 | -8/+42 |
|\ | | | | | win32: ensure hidden files can be staged | ||||
| * | win32: ensure hidden files can be staged | Edward Thomson | 2015-08-03 | 2 | -8/+42 |
| | | |||||
* | | Fix duplicate basenames to support older VS | John Haley | 2015-08-05 | 2 | -2/+1 |
|/ | | | | | | | With Visual Studio versions 2008 and older they ignore the full path to files and only check the basename of the file to find a collision. Additionally, having duplicate basenames can break other build tools like GYP. This fixes https://github.com/libgit2/libgit2/issues/3356 | ||||
* | Merge pull request #3288 from ethomson/getenv | Carlos Martín Nieto | 2015-07-07 | 1 | -0/+2 |
|\ | | | | | git__getenv: utf-8 aware env reader | ||||
| * | git__getenv: utf-8 aware env reader | Edward Thomson | 2015-07-02 | 1 | -0/+2 |
| | | | | | | | | | | | | Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere. Make `cl_getenv` use this to keep consistent memory handling around return values (free everywhere, as opposed to only some platforms). | ||||
* | | Reserve aux_id 0; sort leaks by aux_id. Fix cmp. | Jeff Hostetler | 2015-06-29 | 2 | -10/+28 |
| | | |||||
* | | Include stacktrace summary in memory leak output. | Jeff Hostetler | 2015-06-29 | 4 | -0/+748 |
|/ | |||||
* | Introduce p_utimes and p_futimes | Edward Thomson | 2015-06-16 | 3 | -0/+51 |
| | | | | | | Provide functionality to set the time on a filesystem entry, using utimes or futimes on POSIX type systems or SetFileTime on Win32. | ||||
* | git_buf_put_w: introduce utf16->utf8 conversion | Edward Thomson | 2015-05-01 | 4 | -4/+77 |
| | |||||
* | git_path_diriter: use FindFirstFile in win32 | Edward Thomson | 2015-05-01 | 1 | -5/+0 |
| | | | | | | | Using FindFirstFile and FindNextFile in win32 allows us to use the directory information that is returned, instead of us having to get the file attributes all over again, which is a distinct cost savings on win32. | ||||
* | git_win32_path_dirload_with_stat: removed | Edward Thomson | 2015-05-01 | 2 | -193/+0 |
| | |||||
* | win32: keep full path for realpath usage | Edward Thomson | 2015-04-28 | 1 | -8/+34 |
| | |||||
* | win32: mimic git_path_dirload_with_stat closely | Edward Thomson | 2015-04-28 | 1 | -40/+28 |
| | |||||
* | dirload: loop conditional; less path mangling | Edward Thomson | 2015-04-28 | 1 | -59/+102 |
| | |||||
* | win32 dirload: don't heap allocate DIR structure | Edward Thomson | 2015-04-28 | 1 | -22/+18 |
| | |||||
* | win32: abstract file attributes -> struct stat fn | Edward Thomson | 2015-04-28 | 4 | -80/+81 |
| | |||||
* | Improvements to status performance on Windows. | J Wyman | 2015-04-28 | 4 | -86/+264 |
| | | | | Changed win32/path_w32.c to utilize NTFS' FindFirst..FindNext data instead of doing an lstat per file. Avoiding unnecessary directory opens and file scans reduces IO, improving overall performance. Effect is magnified due to NTFS being a kernel mode file system (as opposed to user mode). | ||||
* | Rename routine to free TLS data | Jeff Hostetler | 2015-04-18 | 1 | -1/+1 |
| | |||||
* | Attempt to fix Windows TLS memory leak. | Jeff Hostetler | 2015-04-17 | 1 | -0/+2 |
| | |||||
* | win32 resource: allow custom comments field in DLL | Edward Thomson | 2015-03-18 | 1 | -2/+6 |
| | |||||
* | Use secure API if available. | Matti Virolainen | 2015-03-06 | 1 | -1/+1 |
| | |||||
* | Add some missing definitions for mingw.org | Tony Kelman | 2015-03-06 | 1 | -0/+7 |
| | | | | these shouldn't be necessary if _WIN32_WINNT >= _WIN32_WINNT_VISTA | ||||
* | Move definitions of strcasecmp and strncasecmp to msvc-compat.h | Tony Kelman | 2015-03-06 | 2 | -2/+3 |
| | | | | should cut down on compiler warnings with mingw | ||||
* | Merge pull request #2932 from jeffhostetler/jeffhostetler/big_clone_crash | Carlos Martín Nieto | 2015-03-04 | 2 | -5/+21 |
|\ | | | | | Fix crash in git_clone on extremely large repos |