Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-06-23Add O_CLOEXEC to open callsRussell Belfer
2013-02-16Fix memory leak in p_getaddrinfo on AmigaRussell Belfer
If gethostbyname() fails on platforms with NO_ADDRINFO, the code leaks the struct addrinfo that was allocated. This fixes that (and a number of code formatting issues in that area of code in src/posix.c).
2013-01-09update copyrightsEdward Thomson
2012-11-07Move inet_pton to posix platform-compatibility layerEduardo Bart
2012-06-22amigaos: CleanupVicent Marti
2012-05-09Clean up warnings and testsRussell Belfer
2012-05-07compat: make p_open able to accept optional mode when passing the O_CREAT flagnulltoken
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.
2012-04-17Fix warnings on 64-bit windows buildsRussell Belfer
This fixes all the warnings on win64 except those in deps, which come from the regex code.
2012-03-15Continue error conversionRussell Belfer
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.
2012-03-09error-handling: On-disk config file backendVicent Martí
Includes: - Proper error reporting when encountering syntax errors in a config file (file, line number, column). - Rewritten `config_write`, now with 99% less goto-spaghetti - Error state in `git_filebuf`: filebuf write functions no longer need to be checked for error returns. If any of the writes performed on a buffer fail, the last call to `git_filebuf_commit` or `git_filebuf_hash` will fail accordingly and set the appropiate error message. Baller!
2012-02-13Update Copyright headerschu
Signed-off-by: schu <schu-github@schulog.org>
2011-12-08Use git_buf for path storage instead of stack-based buffersRussell Belfer
This converts virtually all of the places that allocate GIT_PATH_MAX buffers on the stack for manipulating paths to use git_buf objects instead. The patch is pretty careful not to touch the public API for libgit2, so there are a few places that still use GIT_PATH_MAX. This extends and changes some details of the git_buf implementation to add a couple of extra functions and to make error handling easier. This includes serious alterations to all the path.c functions, and several of the fileops.c ones, too. Also, there are a number of new functions that parallel existing ones except that use a git_buf instead of a stack-based buffer (such as git_config_find_global_r that exists alongsize git_config_find_global). This also modifies the win32 version of p_realpath to allocate whatever buffer size is needed to accommodate the realpath instead of hardcoding a GIT_PATH_MAX limit, but that change needs to be tested still.
2011-11-07Implement p_renameCarlos Martín Nieto
Move the callers of git_futils_mv_atomic to use p_rename. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-10-15fileops/posix: replace usage of "int mode" with "mode_t mode"Brodie Rao
Note: Functions exported from fileops take const mode_t, while the underlying POSIX wrappers take mode_t.
2011-09-27Revert "Rewrite getenv to use Win32 version on Windows"Vicent Marti
This reverts commit e1b86444676b70154bf8ab450d429bdef57a8276.
2011-09-21Rewrite getenv to use Win32 version on WindowsPaul Betts
2011-09-20Rewrite p_* functions to use Unicode and marshal to UTF8 internallyPaul Betts
2011-09-19Cleanup legal dataVicent Marti
1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
2011-07-25posix: declare 'buf' argument of p_write() as constKirill A. Shutemov
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2011-07-05fileops: CleanupVicent Marti
Cleaned up the structure of the whole OS-abstraction layer. fileops.c now contains a set of utility methods for file management used by the library. These are abstractions on top of the original POSIX calls. There's a new file called `posix.c` that contains emulations/reimplementations of all the POSIX calls the library uses. These are prefixed with `p_`. There's a specific posix file for each platform (win32 and unix). All the path-related methods have been moved from `utils.c` to `path.c` and have their own prefix.