- 31 Aug, 2013 1 commit
-
-
Linquize committed
-
- 28 Aug, 2013 2 commits
-
-
All use of sortedcache will need this header, so put it in the definition of the sortedcache API.
Russell Belfer committed -
Edward Thomson committed
-
- 27 Aug, 2013 7 commits
-
-
Russell Belfer committed
-
nulltoken committed
-
nulltoken committed
-
In order to be loaded, a remote needs to be configured with at least a `url` or a `pushurl`. ENOTFOUND will be returned when trying to git_remote_load() a remote with neither of these entries defined.
nulltoken committed -
nulltoken committed
-
nulltoken committed
-
nulltoken committed
-
- 26 Aug, 2013 3 commits
-
-
Russell Belfer committed
-
This loads SRWLock APIs at runtime and in their absence (i.e. on Windows before Vista) falls back on a regular CRITICAL_SECTION that will not permit concurrent readers.
Russell Belfer committed -
Nikolai Vladimirov committed
-
- 24 Aug, 2013 1 commit
-
-
9e9aee67 added an include <netinet/in.h> to fix the build on FreeBSD. Sometime since then the same header is included ifndef _WIN32, so remove the duplicate include.
Fraser Tweedale committed
-
- 22 Aug, 2013 8 commits
-
-
This converts an internal lock from a write lock to a read lock where write isn't needed, and also clarifies some doc things about where various locks are acquired and how various APIs are intended to be used.
Russell Belfer committed -
Russell Belfer committed
-
This makes libgit2 require Windows Vista or newer if it is going to be compiled with the THREADSAFE option
Russell Belfer committed -
Russell Belfer committed
-
Russell Belfer committed
-
This is the first use we have of pthread_rwlock_t in libgit2. Hopefully it won't cause any serious portability problems.
Russell Belfer committed -
Russell Belfer committed
-
Russell Belfer committed
-
- 21 Aug, 2013 4 commits
-
-
Russell Belfer committed
-
This adds thread safety to the refdb_fs by using the new git_sortedcache object and also by relaxing the handling of some filesystem errors where the fs may be changed out from under us. This also adds some new threading tests that hammer on the refdb.
Russell Belfer committed -
The refdb_fs implementation calls realloc directly on a reference object when it wants to rename it. It is not a public object, so this doesn't mess with the immutability of references, but it does assume certain constraints on the reference representation. This commit wraps that assumption in an isolated API to isolate it.
Russell Belfer committed -
This adds two other APIs that I need to the sortedcache type.
Russell Belfer committed
-
- 20 Aug, 2013 2 commits
-
-
This adds a convenient new data type for caching the contents of file in memory when each item in that file corresponds to a name and you need to both be able to lookup items by name and iterate over them in some sorted order. The new data type has locks in place to manage usage in a threaded environment.
Russell Belfer committed -
If there were symbolic refs among the loose refs then the code to create packed-refs would fail trying to parse the OID out of them (where Git just skips trying to pack them). This fixes it.
Russell Belfer committed
-
- 19 Aug, 2013 6 commits
-
-
When a git_buf contains a UTF-8 BOM, the three bytes comprising that BOM are treated as unprintable characters. For a small git_buf, the three BOM characters overwhelm the printable characters. This is problematic when trying to check out a small file as the CR/LF filtering will not apply.
Edward Thomson committed -
Edward Thomson committed
-
p_inet_pton on Windows should set errno properly for callers. Rewrite p_inet_pton to handle error cases correctly and add test cases to exercise this function.
Edward Thomson committed -
We didn't use the added precision in gettimeofday, so remove it. This prevents us from having an unnecessary reimplementation on win32.
Edward Thomson committed -
Carlos Martín Nieto committed
-
Report the index being locked with its own error code in order to be able to differentiate, as a locked index is typically the result of a crashed process or concurrent access, both of which often require user intervention to fix.
Carlos Martín Nieto committed
-
- 18 Aug, 2013 1 commit
-
-
nulltoken committed
-
- 17 Aug, 2013 1 commit
-
-
If none of the backends support direct writes and we must stream the whole file, we already know what the object's id should be; so use the stream's functions directly, bypassing the frontend's hashing and overwriting of our existing id.
Carlos Martín Nieto committed
-
- 16 Aug, 2013 3 commits
-
-
The frontend is in charge of calculating the id of the objects. Thus the backends should treat it as a read-only value. The positioning in the function signature made it seem as though it was an output parameter. Make the id const and move it from the front to behind the subject (backend or stream).
Carlos Martín Nieto committed -
This adds a new API for creating a signature that uses the config to look up "user.name" and "user.email".
Russell Belfer committed -
Martin Woodward committed
-
- 15 Aug, 2013 1 commit
-
-
When dealing with a chain of tags, we need to enqueue each of them individually, which means we can't use `git_tag_peel` as that jumps over the intermediate tags. Do the peeling manually so we can look at each object and take the appropriate action.
Carlos Martín Nieto committed
-