- 17 Sep, 2013 19 commits
-
-
This makes the git_buf struct that was used internally into an externally available structure and eliminates the git_buffer. As part of that, some of the special cases that arose with the externally used git_buffer were blended into the git_buf, such as being careful about git_buf objects that may have a NULL ptr and allowing for bufs with a valid ptr and size but zero asize as a way of referring to externally owned data.
Russell Belfer committed -
This adds the ident filter (that knows how to replace $Id$) and tweaks the filter APIs and code so that git_filter_source objects actually have the updated OID of the object being filtered when it is a known value.
Russell Belfer committed -
Extend the git2/sys/filter API with functions to look up a filter and add it manually to a filter list. This requires some trickery because the regular attribute lookups and checks are bypassed when this happens, but in the right hands, it will allow a user to have granular control over applying filters.
Russell Belfer committed -
This updates the git filter registry to be a little cleaner and plugs some memory leaks.
Russell Belfer committed -
Increasingly there are a number of components that want to do some cleanup at global shutdown time (at least if there are not going to be memory leaks). This creates a very simple system of shutdown hooks that will be invoked by git_threads_shutdown. Right now, the maximum number of hooks is hardcoded, but since adding a hook is not a public API, it should be fine and I thought it was better to start off with really simple code.
Russell Belfer committed -
There was a possible circumstance that could result in reading past the end of a buffer. This check fixes that.
Russell Belfer committed -
I knew I forgot something
Russell Belfer committed -
This moves the git_filter_list into the public API so that users can create, apply, and dispose of filter lists. This allows more granular application of filters to user data outside of libgit2 internals. This also converts all the internal usage of filters to the public APIs along with a few small tweaks to make it easier to use the public git_buffer stuff alongside the internal git_buf.
Russell Belfer committed -
The filter registry as implemented was too primitive to actually work once multiple filters were coming into play. This expands the implementation of the registry to handle multiple prioritized filters correctly. Additionally, this adds an "attributes" field to a filter that makes it really really easy to implement filters that are based on one or more attribute values. The lookup and even simple value checking can all happen automatically without custom filter code. Lastly, with the registry improvements, this fills out the filter lifecycle callbacks, with initialize and shutdown callbacks that will be called before the filter is first used and after it is last invoked. This allows for system-wide initialization and cleanup by the filter.
Russell Belfer committed -
Russell Belfer committed
-
This creates include/sys/filter.h with a basic definition of a git_filter and then converts the internal code to use it. There are related internal objects (git_filter_list) that we will want to publish at some point, but this is a first step.
Russell Belfer committed -
This begins the process of exposing git_filter objects to the public API. This includes: * new public type and API for `git_buffer` through which an allocated buffer can be passed to the user * new API `git_blob_filtered_content` * make the git_filter type and GIT_FILTER_TO_... constants public
Russell Belfer committed -
Support config includes
Vicent Martí committed -
Fix failure in win32 git path guessing
Vicent Martí committed -
Demand read only access to registry key instead of full access. This might happen in Windows Vista and later.
Linquize committed -
The buffer size 0 was definitely not enough so it failed
Linquize committed -
No such thing as an orphan branch
Vicent Martí committed -
Provide libssh2 error message
Vicent Martí committed -
Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
Carlos Martín Nieto committed
-
- 16 Sep, 2013 5 commits
-
-
Etienne Samson committed
-
Etienne Samson committed
-
Vicent Marti committed
-
git_clone supports init_options
Ben Straub committed -
Linquize committed
-
- 13 Sep, 2013 4 commits
-
-
This tests the fixes for issues from #1849
Russell Belfer committed -
Treewalker
Russell Belfer committed -
wilke committed
-
Prevent git_tree_walk 'skip entry' callback return code from leaking through as the return value of git_tree_walk
wilke committed
-
- 12 Sep, 2013 3 commits
-
-
Fix cl_assert_equal_sz error message formating
Vicent Martí committed -
nulltoken committed
-
nulltoken committed
-
- 11 Sep, 2013 3 commits
-
-
SSH: Clone fails with errors: ERROR: Repository invalid & Early EOF
Vicent Martí committed -
errors: Fix format of some error messages
Ben Straub committed -
nulltoken committed
-
- 10 Sep, 2013 4 commits
-
-
revwalk: allow simplifying by first-parent
Russell Belfer committed -
Make odb_loose return EAMBIGUOUS when required
Russell Belfer committed -
nulltoken committed
-
nulltoken committed
-
- 09 Sep, 2013 2 commits
-
-
When enabled, only the first parent of each commit will be queued, enabling a simple way of using first-parent simplification.
Carlos Martín Nieto committed -
fixing headers with bad values for objective-c
Russell Belfer committed
-