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
2014-03-03cmake examples change so that general.c is off by defaultMiha
2014-03-03- CMakeLists.txt small fixMiha
2014-02-25- BUGFIX #2133 (@fourplusone) in smart_protocol.cMiha
- added MSVC cmake definitions to disable warnings - general.c is rewritten so it is ansi-c compatible and compiles ok on microsoft windows - some MSVC reported warning fixes
2014-02-21Check if librt exists independent of OS, to be able to exclude librt on ↵Tobias Marquardt
Android builds, even though it is a 'Linux'.
2014-01-30We never search for libiconv via pkg-configSascha Cunz
So we actually also never know that we can set a dependency on it in pkg-config. Instead always give it the -L and -l options.
2014-01-30Find and use a MacPorts version of libiconv. Fixes #2017.Sascha Cunz
- Add correct -I, -L and -l flags - Search for libiconv in /opt/local/[include|lib] before in the system path. See #2017 for details. - Give splitted -L and -l arguments to pkg-config
2014-01-30Use relative path to set cmake module pathSascha Cunz
This has actually no effect on a "normal" build, but allows to use libgit2 as a part of a larger project via CMake's ADD_SUBDIRECTORY() Closes #2087
2014-01-13Show informational messages during cmake run as informationalSascha Cunz
2013-12-12Test cancel from indexer progress callbackRussell Belfer
This adds tests that try canceling an indexer operation from within the progress callback. After writing the tests, I wanted to run this under valgrind and had a number of errors in that situation because mmap wasn't working. I added a CMake option to force emulation of mmap and consolidated the Amiga-specific code into that new place (so we don't actually need separate Amiga code now, just have to turn on -DNO_MMAP). Additionally, I made the indexer code propagate error codes more reliably than it used to.
2013-12-02Improve iconv finding for cmakeRussell Belfer
* add FindIconv helper for CMake iconv detection * only default using iconv to ON for MacOS * update pkg-config generation to include iconv dependency better
2013-11-15Update files that reference tests-clarBen Straub
2013-11-10Merge pull request #1936 from libgit2/better-url-parsingVicent Martí
Streamline url-parsing logic.
2013-11-06cmake: Add `USE_SSH` optionVicent Marti
2013-11-05Compile HTTP parser on win32 (for url parsing)Ben Straub
2013-10-25Allow -DWINHTTP=OFF to disable WinHTTPEdward Thomson
2013-10-24Really fix the pc fileCarlos Martín Nieto
It turns out that variables have function scope by default. Let's really set -liconv and add a few libraries that were forgotten in the previous commit. We also need to special-case OSX, as they ship zlib but do not provide a pkg-config file for it.
2013-10-23Set the correct dependencies in the pkg-config fileCarlos Martín Nieto
When linking statically, the including project needs to know what the current library build depends on so they can link to it. Store this information in the pkg-config file. While here, remove claims that users need to link to zlib or libcrypto.
2013-10-09Make reference lookups apply precomposeunicodeRussell Belfer
Before these changes, looking up a reference would return the same precomposed or decomposed form of the reference name that was used to look it up, so on MacOS which ignores the difference between the two, a single reference could be looked up either way and git_reference_name would return the form of the name that was used to look it up! This change makes lookup always return the precomposed name if core.precomposeunicode is set regardless of which version was used to look it up. The reference iterator was already returning the precomposed form from earlier work. This also updates the CMakeLists.txt rules for enabling iconv usage because the clar tests for this code were actually not being activated properly with the old version. Finally, this moves git_repository_reset_filesystem from include/ git2/repository.h to include/git2/sys/repository.h since it is not really a function that normal library users should have to think about very often.
2013-10-03Initial iconv hookup for precomposed unicodeRussell Belfer
This hooks up git_path_direach and git_path_dirload so that they will take a flag indicating if directory entry names should be tested and converted from decomposed unicode to precomposed form. This code will only come into play on the Apple platform and even then, only when certain types of filesystems are used. This involved adding a flag to these functions which involved changing a lot of places in the code. This was an opportunity to do a bit of code cleanup here and there, for example, getting rid of the git_futils_cleanupdir_r function in favor of a simple flag to git_futils_rmdir_r to not remove the top level entry. That ended up adding depth tracking during rmdir_r which led to a safety check for infinite directory recursion. Yay. This hasn't actually been tested on the Mac filesystems where the issue occurs. I still need to get test environment for that.
2013-09-30Initial Implementation of progress reports during pushJameson Miller
This adds the basics of progress reporting during push. While progress for all aspects of a push operation are not reported with this change, it lays the foundation to add these later. Push progress reporting can be improved in the future - and consumers of the API should just get more accurate information at that point. The main areas where this is lacking are: 1) packbuilding progress: does not report progress during deltafication, as this involves coordinating progress from multiple threads. 2) network progress: reports progress as objects and bytes are going to be written to the subtransport (instead of as client gets confirmation that they have been received by the server) and leaves out some of the bytes that are transfered as part of the push protocol. Basically, this reports the pack bytes that are written to the subtransport. It does not report the bytes sent on the wire that are received by the server. This should be a good estimate of progress (and an improvement over no progress).
2013-09-04Split examples CMakeLists.txtRussell Belfer
Also, this converts the examples/CMakeLists.txt from explicitly listing to just globbing for all the individual C files.
2013-09-02Merge pull request #1823 from kadamski/building4androidVicent Martí
Small changes enabling compiling libgit2 for Android.
2013-09-01Build all example files if BUILD_EXAMPLES used.Krzysztof Adamski
2013-09-01Create ANDROID build optionKrzysztof Adamski
CMake seems not to support Android as a target and this option lets us test this in CMakeLists.txt.
2013-08-14Test SSH in travisCarlos Martín Nieto
Set up the ssh credentials so we are able to talk to localhost and issue git commands. Move to use a script, as the command list is getting somewhat long. While here, delay installing valgrind until we need it, as it and its dependencies are by far the largest downloads and this allows us to start compiling (and failing) faster and we only incur this cost when the test suite runs successfully.
2013-08-12CMake: finding libssh2 should be idempotentCarlos Martín Nieto
With the current code, running 'cmake .' in an already-configured directory causes the removal of ssh flags passed to the compiler, making it impossible to build with ssh support but by removing CMake's cache. Remove the check for LIBSSH2_LIBRARY and let CMake do the right thing wrt finding the library.
2013-08-05Move slow tests to "stress" clar moduleRussell Belfer
Create a new section of clar tests "stress" that will default to being off where we can put slow tests that push the library for performance testing purposes.
2013-07-18TypoBen Straub
2013-07-18Switch default calling convention to cdecl.Ben Straub
2013-07-13header files show up in vsEdward Thomson
2013-06-19CMakeLists: fix zlib linker setupThomas Rast
b53671a (Search for zlib unconditional, 2012-12-18) changed things around to always (even on windows, that's what the subject refers to) call FIND_PACKAGE(ZLIB). However, it did not correctly handle the case where ZLIB_LIBRARY is cached, either by the user setting it manually or by an earlier search. In that case, the IF(ZLIB_FOUND) would not trigger (that variable is not cached) and we'd instead use the built-in version. 000e689 (CMake: don't try to use bundled zlib when the system's path is in the cache, 2013-05-12) tried to fix that, but it actually made the problem worse: now with ZLIB_LIBRARY cached, _neither_ of the blocks would execute, resulting in a linker error for me when trying to build such a doubly-configured setup. To fix the issue, we just trust CMake to do the right thing. If ZLIB_LIBRARY is set (either from user or cache) then the find_library in FindZLIB.cmake will use that instead of searching again. So we can unconditionally (for real this time) call FIND_PACKAGE(ZLIB), and just check its result.
2013-06-13cmake: Add option to specify the name of the binarynulltoken
2013-06-12Revert "cmake: Update Windows resources to reflect the optional vendor string"Vicent Marti
This reverts commit 095bfd748766966f5515bdfe64867d6a09287123.
2013-05-30Build with the system's http-parser installation if availableVeeti Paananen
2013-05-22cmake: Update Windows resources to reflect the optional vendor stringnulltoken
Make InternalName and OriginalFilename resources reflect the name of the compiled binary.
2013-05-22cmake: Fix indentationnulltoken
2013-05-16Merge pull request #1558 from bmorganpa/ssh_transportVicent Martí
SSH Transport
2013-05-15CMake: allow appending a string to the library filenameCarlos Martín Nieto
This helps us install multiple versions of the library side-by-side.
2013-05-12CMake: don't try to use bundled zlib when the system's path is in the cacheCarlos Martín Nieto
The code surrounding zlib bundling did not take into consideration that ZLIB_LIBRARY gets cached, and assumed that FIND(ZLIB) would always set ZLIB_FOUND, which does not hold true, as this variable signifies that we have found the package and had to look at the system, as its location was not cached. Only use the bundled sources if the external zlib is neither newly-found nor cached.
2013-05-07Merge remote-tracking branch 'origin/development' into ssh_transportBrad Morgan
2013-05-07Added libssh2 cmake moduleBrad Morgan
2013-05-03clar: Always generate the test suiteVicent Marti
2013-04-29cmake 2.6 parser bug workaroundEdward Thomson
2013-04-25git_atomic_ssize for 64-bit atomics only on 64-bit platformsEdward Thomson
2013-04-09Add rev-list example to makefilesBen Straub
2013-03-26http: Support 302 Found (arrbee did most of the work)Philip Kelley
2013-03-26clar: Disable online tests. By now.Vicent Marti
2013-03-17Fix for a cmake bug when using MSVC + Win64 + static librariesQbProg
(see http://public.kitware.com/Bug/view.php?id=11240)
2013-03-17Adds an option to select the CRT link mode ( static or dynamic ).QbProg
This is useful when linking libgit2 statically, as the setting must match the linking program's one.
2013-03-08Use C99 stdio in mingw-w64Carlos Martín Nieto
MinGW >= 3.14 does this automatically, but mingw-64 wants us to define it.