summaryrefslogtreecommitdiff
path: root/src/win32
Commit message (Collapse)AuthorAgeFilesLines
...
| * Minor win32 fixes and improvementsRussell Belfer2013-08-133-16/+11
| | | | | | | | | | | | | | | | This is just a bunch of small fixes that I noticed while looking at the UTF8 and UTF16 path stuff. It fixes a slowdown in looking for an empty directory (not exiting loop asap), makes the dir name in the git__DIR structure be a GIT_FLEX_ARRAY to save an allocation, and fixes some slightly odd assumptions in the cl_getenv helper.
| * Reintroduce type for UTF8 win32 path conversionsRussell Belfer2013-08-134-10/+11
| |
| * Rename git__win32_path fns to git_win32_pathRussell Belfer2013-08-134-21/+24
| |
| * Fix mingw cross-compile buildBen Straub2013-08-131-0/+1
| |
| * windows: Fuck meVicent Marti2013-08-132-1/+2
| |
| * windows: Require orderVicent Marti2013-08-132-2/+2
| |
| * windows: Missing renames.Vicent Marti2013-08-132-3/+3
| |
| * windows: Path conversion with better semanticsVicent Marti2013-08-135-43/+42
| |
| * Make utf-8 source strings unlimitedBen Straub2013-08-101-2/+2
| |
| * Fix 64-bit MSVC warningsBen Straub2013-08-101-2/+2
| |
| * Discriminate path-specific and general UTF-X conversionsBen Straub2013-08-086-26/+37
| |
| * Rename git_win_str_utf* to git_win32_path_utf*Ben Straub2013-08-075-23/+23
| |
| * Add typedefs for win32 utf-8 and utf-16 buffersBen Straub2013-08-076-40/+44
| | | | | | | | ...and normalize the signatures of the two conversion functions.
| * Split UTF-16 and UTF-8 buffer sizes for win32Ben Straub2013-08-056-44/+45
| | | | | | | | | | Also fixed up call-sites to use the correct buffer sizes, especially when converting to utf-8.
* | Fixes to safely reading the indexEdward Thomson2013-08-081-0/+5
|/ | | | | Avoid wrapping around extension size when reading, avoid walking off the end of the buffer when reading names.
* Fix compilation warningsnulltoken2013-06-291-5/+3
|
* Correctly handle junctionsSven Strickroth2013-06-251-0/+3
| | | | | | A junction has S_IFDIR | S_IFLNK set, however, only one makes sense. Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Do not redefine WC_ERR_INVALID_CHARSSven Strickroth2013-06-231-0/+2
| | | | | | WC_ERR_INVALID_CHARS might be already defined by the Windows SDK. Signed-off-by: Sven Strickroth <email@cs-ware.de>
* cmake: Add option to specify the name of the binarynulltoken2013-06-131-6/+4
|
* Revert "cmake: Update Windows resources to reflect the optional vendor string"Vicent Marti2013-06-121-1/+5
| | | | This reverts commit 095bfd748766966f5515bdfe64867d6a09287123.
* Fix Windows warningsRussell Belfer2013-06-121-0/+1
| | | | | This fixes problems with missing function prototypes and 64-bit data issues on Windows.
* thread: fix segfault on Windows 64 bitsyorah2013-05-301-1/+3
| | | | | | `lpExitCode` is a pointer to a long. A long is 32 bits wide on Windows. It means that on Windows 64bits, `GetExitCodeThread()` doesn't set/clear the high-order bytes of the 64 bits memory space pointed at by `value_ptr`.
* cmake: Update Windows resources to reflect the optional vendor stringnulltoken2013-05-221-5/+1
| | | | Make InternalName and OriginalFilename resources reflect the name of the compiled binary.
* calloc() to initialize memoryLinquize2013-05-161-1/+1
|
* Fix trailing whitespacesnulltoken2013-05-152-2/+1
|
* Unify whitespaces to tabsLinquize2013-05-151-57/+57
|
* Merge pull request #1547 from ethomson/win32_statVicent Martí2013-05-061-1/+12
|\ | | | | p_stat() should follow symlinks on windows
| * p_stat() should follow symlinks on windowsEdward Thomson2013-05-041-1/+12
| |
* | allow checkout to proceed when a dir to be removed is in use (win32)Edward Thomson2013-05-031-1/+12
|/
* Make indexer use shared packfile open codeRussell Belfer2013-04-222-6/+10
| | | | | | | | | | | The indexer was creating a packfile object separately from the code in pack.c which was a problem since I put a call to git_mutex_init into just pack.c. This commit updates the pack function for creating a new pack object (i.e. git_packfile_check()) so that it can be used in both places and then makes indexer.c use the shared initialization routine. There are also a few minor formatting and warning message fixes.
* Fixes for Windows cas/threading stuffRussell Belfer2013-04-221-6/+11
|
* Fix whitespace in src/win32/version.hPhilip Kelley2013-03-311-2/+2
|
* Add git_has_win32_version helperPhilip Kelley2013-03-312-1/+21
|
* Win32 error reporting: Support WinHTTP errorsPhilip Kelley2013-03-311-18/+54
|
* Fixes and cleanupsRussell Belfer2013-03-182-17/+18
| | | | | Get rid of some dead code, tighten things up a bit, and fix a bug with core::env test.
* Switch search paths to classic delimited stringsRussell Belfer2013-03-182-45/+29
| | | | | | | | | | | | This switches the APIs for setting and getting the global/system search paths from using git_strarray to using a simple string with GIT_PATH_LIST_SEPARATOR delimited paths, just as the environment PATH variable would contain. This makes it simpler to get and set the value. I also added code to expand "$PATH" when setting a new value to embed the old value of the path. This means that I no longer require separate actions to PREPEND to the value.
* Implement global/system file search pathsRussell Belfer2013-03-152-60/+160
| | | | | | | | | | | | | | | | | | | | | | | The goal of this work is to expose the search logic for "global", "system", and "xdg" files through the git_libgit2_opts() interface. Behind the scenes, I changed the logic for finding files to have a notion of a git_strarray that represents a search path and to store a separate search path for each of the three tiers of config file. For each tier, I implemented a function to initialize it to default values (generally based on environment variables), and then general interfaces to get it, set it, reset it, and prepend new directories to it. Next, I exposed these interfaces through the git_libgit2_opts interface, reusing the GIT_CONFIG_LEVEL_SYSTEM, etc., constants for the user to control which search path they were modifying. There are alternative designs for the opts interface / argument ordering, so I'm putting this phase out for discussion. Additionally, I ended up doing a little bit of clean up regarding attr.h and attr_file.h, adding a new attrcache.h so the other two files wouldn't have to be included in so many places.
* Merge pull request #1373 from arrbee/why-cdecl-whyVicent Martí2013-02-282-1/+11
|\ | | | | Why cdecl why?
| * Fix some deprecation warnings on WindowsRussell Belfer2013-02-282-1/+9
| | | | | | | | | | This fixes some snprintf and vsnprintf related deprecation warnings we've been having on Windows with recent compilers.
| * Add GIT_STDLIB_CALLRussell Belfer2013-02-281-0/+2
| | | | | | | | | | | | This removes the one-off GIT_CDECL and adds a new standard way of doing this named GIT_STDLIB_CALL with a src/win32 specific def when on the Windows platform.
* | w32-posix: Wrap the `timezone` declaration with a clauseVicent Marti2013-02-281-0/+3
|/ | | | Allows compilation in newer versions of MinGW that already defined it.
* Win32: Use constants in version resource definitions where possibleSven Strickroth2013-02-271-2/+2
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Change git2.rc to identify git.dll as VOS_NT_WINDOWS32Philip Kelley2013-02-131-1/+1
|
* Fix Windows symlinksJameson Miller2013-02-081-1/+1
|
* Moved braces to conform to code stylePatrick Pokatilo2013-02-081-2/+1
|
* Replace LoadLibrary with GetModuleHandle, since kernel32 is loaded by defaultPatrick Pokatilo2013-02-081-3/+3
| | | | As requested
* Replace call to strnlen with call to strlenPatrick Pokatilo2013-02-081-6/+5
|
* Include <string.h>Patrick Pokatilo2013-02-081-0/+1
|
* Fix call to readlinkPatrick Pokatilo2013-02-081-1/+4
|
* Call p_readlink to determine symlink sizePatrick Pokatilo2013-02-071-0/+13
|