- 08 May, 2012 6 commits
-
-
repository: ensure git_repository_discover() returns ENOTFOUND when unable to find a repository given the constraints
nulltoken committed -
compat: make p_realpath Windows implementation be a bit more POSIX compliant and fail if the provided path does not lead to an existing entry
nulltoken committed -
nulltoken committed
-
object: make git_object_lookup() return GIT_ENOTFOUND when searching for an existing object by specifying an incorrect type
nulltoken committed -
remote: make git_remote_load() return GIT_ENOTFOUND when the remote url cannot be retrieved from the config file
nulltoken committed -
nulltoken committed
-
- 07 May, 2012 3 commits
-
-
The fix to support attrs on bare repos went a little too far in trying to avoid using the working directory and ended up not processing the input path quite correctly.
Russell Belfer committed -
Previously, it was defined in netops.c, but it's also needed in one of the clar tests, so I figured we might as well just make it global for the whole project. Without it, the mingw32 linker won't resolve GetProcessId() (called from the core/errors.c clar test) because of some conditionals in windows.h.
Scott J. Goldman committed
-
- 06 May, 2012 2 commits
-
-
Carlos Martín Nieto committed
-
Vicent Martí committed
-
- 05 May, 2012 3 commits
-
-
Vicent Martí committed
-
Scott J. Goldman committed
-
gitno_connect() can return an error or socket, which is fine on most platforms where sockets are file descriptors (signed int), but on Windows, SOCKET is an unsigned type, which is problematic when we are trying to test if the socket was actually a negative error code. This fix seperates the error code and socket in gitno_connect(), and fixes the error handling in do_connect() functions to compensate. It appears that git_connect() and the git-transport do_connect() functions had bugs in the non-windows cases too (leaking sockets, and not properly reporting connection error, respectively) so I went ahead and fixed those too.
Scott J. Goldman committed
-
- 04 May, 2012 3 commits
-
-
There are three changes here: - correctly propogate error code from failed object lookups - make zlib inflate use our allocators - add OID to notfound error in ODB lookups
Russell Belfer committed -
Vicent Martí committed
-
Russell Belfer committed
-
- 03 May, 2012 6 commits
-
-
Depending on the operation, we need to consider gitattributes in both the work dir and the index. This adds a parameter to all of the gitattributes related functions that allows user control of attribute reading behavior (i.e. prefer workdir, prefer index, only use index). This fix also covers allowing us to check attributes (and hence do diff and status) on bare repositories. This was a somewhat larger change that I hoped because it had to change the cache key used for gitattributes files.
Russell Belfer committed -
Add git_note_default_ref to allow easy retrieval of the currently set default notes reference.
Michael Schubert committed -
Setting core.notesRef allows to change the default notes reference used by Git. Check if set before using GIT_NOTES_DEFAULT_REF. Fixes #649.
Michael Schubert committed -
Vicent Martí committed
-
Vicent Martí committed
-
Vicent Martí committed
-
- 02 May, 2012 4 commits
-
-
Vicent Martí committed
-
Since strnlen is not supported on all platforms and since we now have the shiny new git_text_is_binary in the filtering code, let's convert diff binary detection to use the new stuff.
Russell Belfer committed -
To make this code more resilient to future changes, we'll explicitly translate the libgit2 structure to the libxdiff structure.
Russell Belfer committed -
This should restore the ability to include libgit2 headers in C++ projects. Cherry picked 2de60205 from development into new-error-handling.
Russell Belfer committed
-
- 01 May, 2012 1 commit
-
-
Currently, git_remote_disconnect not only closes the connection but also frees the underlying transport object, making it impossible to write code like // fetch stuff git_remote_download() // close connection git_remote_disconnect() // call user provided callback for each ref git_remote_update_tips(remote, callback) because remote->refs points to references owned by the transport object. This means, we have an idling connection while running the callback for each reference. Instead, allow immediate disconnect and free the transport later in git_remote_free().
Michael Schubert committed
-
- 30 Apr, 2012 3 commits
-
-
When e.g. a repository isn't found, the server sends an error saying so. Put that error message in our error buffer.
Carlos Martín Nieto committed -
nulltoken committed
-
Update the callback to provide some information related to the file change being processed and the range of the hunk, when applicable.
nulltoken committed
-
- 29 Apr, 2012 1 commit
-
-
nulltoken committed
-
- 28 Apr, 2012 1 commit
-
-
The recent 64-bit Windows fixes changed the return code in git_pkt_parse_line() so it wouldn't signal a short buffer, breaking the network code. Bring it back.
Carlos Martín Nieto committed
-
- 27 Apr, 2012 1 commit
-
-
Michael Schubert committed
-
- 26 Apr, 2012 3 commits
-
-
Russell Belfer committed
-
We were not following the git behavior for leading slashes in path names when matching git ignores and git attribute file patterns. This should fix issue #638.
Russell Belfer committed -
Carlos Martín Nieto committed
-
- 25 Apr, 2012 3 commits
-
-
nulltoken committed
-
This renamed `git_khash_str` to `git_strmap`, `git_hash_oid` to `git_oidmap`, and deletes `git_hashtable` from the tree, plus adds unit tests for `git_strmap`.
Russell Belfer committed -
This updates khash.h with some extra features (like error checking on allocations, ability to use wrapped malloc, foreach calls, etc), creates two high-level wrappers around khash: `git_khash_str` and `git_khash_oid` for string-to-void-ptr and oid-to-void-ptr tables, then converts all of the old usage of `git_hashtable` over to use these new hashtables. For `git_khash_str`, I've tried to create a set of macros that yield an API not too unlike the old `git_hashtable` API. Since the oid hashtable is only used in one file, I haven't bother to set up all those macros and just use the khash APIs directly for now.
Russell Belfer committed
-