summaryrefslogtreecommitdiff
path: root/src/win32
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #1303 from csware/win32_consistent_error_encodingVicent Martí2013-02-012-0/+54
|\ | | | | Win32: Make sure error messages are consistently UTF-8 encoded
| * Deduplicate FormatMessage UTF-16 to UTF-8 conversion codeSven Strickroth2013-02-022-0/+54
| | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | Stick to coding style: Move up bracesSven Strickroth2013-02-011-6/+3
| | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | Detect msysgit installation of users without admin rightsSven Strickroth2013-01-311-4/+7
| | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | Refactored: Move msysgit registry detection to it's own functionSven Strickroth2013-01-312-17/+25
|/ | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* update copyrightsEdward Thomson2013-01-0815-15/+15
|
* Fix MSVC compilation warningsnulltoken2012-12-171-1/+0
|
* Fix warnings on Win64 buildRussell Belfer2012-11-271-3/+3
|
* Clean up config.hBen Straub2012-11-271-1/+1
|
* Minor optimization in win32 do_lstatEduardo Bart2012-11-201-3/+2
|
* update win32 lstat commentEduardo Bart2012-11-191-5/+2
|
* Fix win32 lstatEduardo Bart2012-11-191-19/+7
|
* Add POSIX compat lstat() variant for win32Russell Belfer2012-11-144-57/+90
| | | | | | | | | | The existing p_lstat implementation on win32 is not quite POSIX compliant when setting errno to ENOTDIR. This adds an option to make is be compliant so that code (such as checkout) that cares to have separate behavior for ENOTDIR can use it portably. This also contains a couple of other minor cleanups in the posix_w32.c implementations to avoid unnecessary work.
* Move inet_pton to posix platform-compatibility layerEduardo Bart2012-11-072-1/+44
|
* Incremental improvements to pack-objects logicPhilip Kelley2012-10-171-0/+3
| | | | Incorporate feedback for incr. improvements to pack-objects
* Support pthread_cond_* on Win32Philip Kelley2012-10-162-0/+72
|
* Merge pull request #952 from csware/config-locationsVicent Martí2012-10-162-0/+172
|\ | | | | Config location fixes
| * Move win32 specific stuff to win32/findfile.cSven Strickroth2012-10-022-0/+172
| | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | Always use internal fnmatch, not systemRussell Belfer2012-10-151-1/+0
|/
* Fix MSVC amd64 compilation warningsnulltoken2012-09-201-1/+1
|
* Add bounds checking to UTF-8 conversionutf8-winVicent Marti2012-08-285-60/+35
|
* windows: Keep UTF-8 on the stack yoVicent Marti2012-08-285-215/+64
|
* UTF-8 changes yoVicent Martí2012-08-281-0/+92
|
* Merge pull request #778 from ben/cloneVicent Martí2012-08-192-0/+10
|\ | | | | Clone
| * Checkout: obey core.symlinks.Ben Straub2012-07-171-2/+5
| |
| * Merge branch 'development' into cloneBen Straub2012-07-171-1/+1
| |\
| * | Checkout: handle symlinks.Ben Straub2012-07-162-0/+7
| | | | | | | | | Includes unfinished win32 implementation.
* | | win32: set errno to ENOENT or ENOTDIR when appropriate in do_lstatCarlos Martín Nieto2012-08-021-0/+7
| |/ |/|
* | fix below issues on mingw:liyuray2012-06-211-1/+1
|/ | | | | | | | | | | | | 1. compile warning: D:\libgit2.git\src\win32\posix_w32.c: In function 'p_open': D:\libgit2.git\src\win32\posix_w32.c:235:10: warning: 'mode_t' is promoted to 'int' when passed through '...' [enabled by default] D:\libgit2.git\src\win32\posix_w32.c:235:10: note: (so you should pass 'int' not 'mode_t' to 'va_arg') D:\libgit2.git\src\win32\posix_w32.c:235:10: note: if this code is reached, the program will abort 2. test crash. 3. the above two issues are same root cause. please see http://www.eskimo.com/~scs/cclass/int/sx11c.html
* Precompile headers for MSVC.Ben Straub2012-06-132-0/+20
|
* misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-1/+1
|
* Merge pull request #684 from benstraub/rev-parseVicent Martí2012-06-071-0/+76
|\ | | | | Rev parse
| * Rename posix wrappers with 'p_' prefix.Ben Straub2012-06-062-7/+3
| |
| * Merge branch 'development' into rev-parseBen Straub2012-06-054-221/+11
| |\ | | | | | | | | | | | | | | | Conflicts: src/util.h tests-clar/refs/branches/listall.c
| * | Fix date.c build in msvc.Ben Straub2012-05-152-0/+80
| | | | | | | | | | | | | | | | | | Ported the win32 implementations of gmtime_r, localtime_r, and gettimeofday to be part of the posix compatibility layer, and fixed git_signature_now to use them.
* | | repository: make git_repository_init() value the core.filemode config entrynulltoken2012-06-051-0/+1
| |/ |/|
* | Fix bugs in UTF-8 <-> UTF-16 conversionRussell Belfer2012-05-241-13/+10
| | | | | | | | | | | | | | | | | | | | | | | | The function to convert UTF-16 to UTF-8 was only allocating a buffer of wcslen(utf16str) bytes for the UTF-8 string, but that is not sufficient if you have multibyte characters, and so when those occured, the conversion was failing. This updates the conversion functions to use the Win APIs to calculate the correct buffer lengths. Also fixes a comparison in the unit tests that would fail if you did not have a particular environment variable set.
* | Hook up Windows compat fnmatch() for SolarisScott J. Goldman2012-05-103-208/+1
|/ | | | | | | | Since Solaris does not support some of the same flags as glibc fnmatch(), we just use the implementation we have for Windows. Now that it's no longer a windows-specific thing, I moved it into compat/ instead of win32/
* compat: make p_realpath Windows implementation be a bit more POSIX compliant ↵nulltoken2012-05-081-4/+17
| | | | and fail if the provided path does not lead to an existing entry
* compat: make p_open able to accept optional mode when passing the O_CREAT flagnulltoken2012-05-072-4/+18
| | | | This has the nice side effect of making test_attr_repo__staging_properly_normalizes_line_endings_according_to_gitattributes_directives() test pass again on Windows. This test started to fail after commit 674a198 was applied.
* Merge remote-tracking branch 'scottjg/fix-mingw32' into developmentVicent Martí2012-05-051-0/+1
|\ | | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/transports/http.c tests-clar/clar
| * Fix missing prototype warning in utf-conv.cScott J. Goldman2012-05-051-0/+1
| |
* | Fix warnings on 64-bit windows buildsRussell Belfer2012-04-173-25/+40
| | | | | | | | | | This fixes all the warnings on win64 except those in deps, which come from the regex code.
* | Continue error conversionRussell Belfer2012-03-144-130/+180
| | | | | | | | | | | | | | This converts blob.c, fileops.c, and all of the win32 files. Also, various minor cleanups throughout the code. Plus, in testing the win32 build, I cleaned up a bunch (although not all) of the warnings with the 64-bit build.
* | Resolve comments from pull requestRussell Belfer2012-03-131-2/+1
| | | | | | | | | | | | | | This converts the map validation function into a macro, tweaks the GITERR_OS system error automatic appending, and adds a tentative new error access API and some quick unit tests for both the old and new error APIs.
* | Migrate ODB files to new error handlingRussell Belfer2012-03-122-36/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates odb.c, odb_loose.c, odb_pack.c and pack.c to the new style of error handling. Also got the unix and win32 versions of map.c. There are some minor changes to other files but no others were completely converted. This also contains an update to filebuf so that a zeroed out filebuf will not think that the fd (== 0) is actually open (and inadvertently call close() on fd 0 if cleaned up). Lastly, this was built and tested on win32 and contains a bunch of fixes for the win32 build which was pretty broken.
* | error-handling: RepositoryVicent Martí2012-03-071-10/+5
| | | | | | | | | | | | | | | | This also includes droping `git_buf_lasterror` because it makes no sense in the new system. Note that in most of the places were it has been dropped, the code needs cleanup. I.e. GIT_ENOMEM is going away, so instead it should return a generic `-1` and obviously not throw anything.
* | error-handling: Add new routinesVicent Martí2012-03-031-2/+6
|/ | | | | Obviously all the old throw routines are still in place, so we can gradually port over.
* Clean up GIT_UNUSED macros on all platformsRussell Belfer2012-03-022-9/+9
| | | | | | | | | | | | | | | | | | | It turns out that commit 31e9cfc4cbcaf1b38cdd3dbe3282a8f57e5366a5 did not fix the GIT_USUSED behavior on all platforms. This commit walks through and really cleans things up more thoroughly, getting rid of the unnecessary stuff. To remove the use of some GIT_UNUSED, I ended up adding a couple of new iterators for hashtables that allow you to iterator just over keys or just over values. In making this change, I found a bug in the clar tests (where we were doing *count++ but meant to do (*count)++ to increment the value). I fixed that but then found the test failing because it was not really using an empty repo. So, I took some of the code that I wrote for iterator testing and moved it to clar_helpers.c, then made use of that to make it easier to open fixtures on a per test basis even within a single test file.
* Update diff to use iteratorsRussell Belfer2012-03-022-6/+12
| | | | | | | | | | | | | This is a major reorganization of the diff code. This changes the diff functions to use the iterators for traversing the content. This allowed a lot of code to be simplified. Also, this moved the functions relating to outputting a diff into a new file (diff_output.c). This includes a number of other changes - adding utility functions, extending iterators, etc. plus more tests for the diff code. This also takes the example diff.c program much further in terms of emulating git-diff command line options.