summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add ident filterRussell Belfer2013-09-1714-23/+355
| | | | | | | 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.
* Add functions to manipulate filter listsRussell Belfer2013-09-176-25/+181
| | | | | | | | 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.
* Update filter registry codeRussell Belfer2013-09-172-58/+122
| | | | | This updates the git filter registry to be a little cleaner and plugs some memory leaks.
* Add simple global shutdown hooksRussell Belfer2013-09-1710-45/+62
| | | | | | | | | | 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.
* Fix longstanding valgrind warningRussell Belfer2013-09-171-1/+1
| | | | | There was a possible circumstance that could result in reading past the end of a buffer. This check fixes that.
* Hook up filter initialize callbackRussell Belfer2013-09-172-2/+34
| | | | I knew I forgot something
* Extend public filter api with filter listsRussell Belfer2013-09-1713-234/+297
| | | | | | | | | | | 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.
* Add attributes to filters and fix registryRussell Belfer2013-09-176-80/+364
| | | | | | | | | | | | | | | | | | 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.
* Make git_filter_source opaqueRussell Belfer2013-09-173-11/+60
|
* Create public filter object and use itRussell Belfer2013-09-1714-244/+497
| | | | | | | 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.
* Start of filter API + git_blob_filtered_contentRussell Belfer2013-09-1714-45/+428
| | | | | | | | | | 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
* Merge pull request #1833 from libgit2/cmn/config-includeVicent Martí2013-09-175-112/+336
|\ | | | | Support config includes
| * config: handle realloc issues from larger depthsCarlos Martín Nieto2013-09-072-0/+23
| | | | | | | | | | | | | | As the include depth increases, the chance of a realloc increases. This means that whenever we run git_array_alloc() or call config_parse(), we need to remember what our reader's index is so we can look it up again.
| * config: return an error when reaching the maximum include depthCarlos Martín Nieto2013-09-071-3/+4
| |
| * config: fix variable overridingCarlos Martín Nieto2013-09-073-1/+43
| | | | | | | | | | When two or more variables of the same name exist and the user asks for a scalar, we must return the latest value assign to it.
| * config: refresh included filesCarlos Martín Nieto2013-09-072-5/+39
| | | | | | | | | | | | We need to refresh the variables from the included files if they are changed, so loop over all included files and re-parse the files if any of them has changed.
| * config: keep a list of included filesCarlos Martín Nieto2013-09-071-47/+58
| | | | | | | | | | When refreshing we need to refresh if any of the files have been touched, so we need to keep the list.
| * config: add support for include directivesCarlos Martín Nieto2013-09-074-5/+106
| | | | | | | | | | Relative, absolute and home-relative paths are supported. The recursion limit it set at 10, just like in git.
| * config: decouple the backend from the reader at the low levelCarlos Martín Nieto2013-09-051-84/+96
| | | | | | | | | | | | | | In order to support config includes, we must differentiate between the backend's main file and the file we are currently parsing. This lays the groundwork for includes, keeping the current behaviours.
* | Merge pull request #1857 from linquize/find-git-path-win32Vicent Martí2013-09-171-2/+2
|\ \ | | | | | | Fix failure in win32 git path guessing
| * | Fix failure in win32_find_git_in_registry() when UAC is turned onLinquize2013-09-171-1/+1
| | | | | | | | | | | | | | | Demand read only access to registry key instead of full access. This might happen in Windows Vista and later.
| * | Fix failure in win32_find_git_in_registry()Linquize2013-09-171-1/+1
|/ / | | | | | | The buffer size 0 was definitely not enough so it failed
* | Merge pull request #1856 from libgit2/cmn/no-orphansVicent Martí2013-09-1725-59/+59
|\ \ | | | | | | No such thing as an orphan branch
| * | No such thing as an orphan branchCarlos Martín Nieto2013-09-1725-59/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #1851 from tiennou/libssh2-errorsVicent Martí2013-09-172-14/+23
|\ \ \ | |/ / |/| | Provide libssh2 error message
| * | Whitespace.Etienne Samson2013-09-161-1/+1
| | |
| * | Add a wrapper to provide the libssh2 error messageEtienne Samson2013-09-162-13/+22
| | |
* | | clone: Anal as fuckVicent Marti2013-09-161-2/+1
|/ /
* | Merge pull request #1850 from linquize/git-clone-init-optionsBen Straub2013-09-152-3/+12
|\ \ | | | | | | git_clone supports init_options
| * | git_clone supports optional init_optionsLinquize2013-09-162-3/+12
|/ /
* | Add tests for git_tree_walkRussell Belfer2013-09-131-0/+74
| | | | | | | | This tests the fixes for issues from #1849
* | Merge pull request #1849 from whavinga/treewalkerRussell Belfer2013-09-131-2/+5
|\ \ | | | | | | Treewalker
| * | Fix memory leak in git_tree_walk on error or when stopping the walk from the ↵wilke2013-09-131-1/+2
| | | | | | | | | | | | supplied callback
| * | Prevent git_tree_walk 'skip entry' callback return code from leaking through ↵wilke2013-09-131-1/+3
|/ / | | | | | | as the return value of git_tree_walk
* | Merge pull request #1848 from libgit2/ntk/fix/cl_assert_equal_szVicent Martí2013-09-123-3/+2
|\ \ | | | | | | Fix cl_assert_equal_sz error message formating
| * | clar: Move cl_assert_equal_sz() definition to clar.hnulltoken2013-09-122-2/+1
| | |
| * | clar: Fix clar__assert_equal error message formatingnulltoken2013-09-121-1/+1
|/ /
* | Merge pull request #1839 from isaac/ssh-repository-invalidVicent Martí2013-09-111-0/+1
|\ \ | | | | | | SSH: Clone fails with errors: ERROR: Repository invalid & Early EOF
| * | Test for repo before removing leading colonIsaac Kearse2013-09-101-1/+1
| | |
| * | Trim leading colon from ssh repository pathIsaac Kearse2013-09-081-0/+1
| | |
* | | Merge pull request #1846 from libgit2/ntk/fix/formatBen Straub2013-09-113-3/+3
|\ \ \ | | | | | | | | errors: Fix format of some error messages
| * | | errors: Fix format of some error messagesnulltoken2013-09-113-3/+3
|/ / /
* | | Merge pull request #1838 from libgit2/cmn/first-parentRussell Belfer2013-09-104-5/+79
|\ \ \ | | | | | | | | revwalk: allow simplifying by first-parent
| * | | revwalk: allow simplifying by first-parentCarlos Martín Nieto2013-09-094-5/+79
| |/ / | | | | | | | | | | | | When enabled, only the first parent of each commit will be queued, enabling a simple way of using first-parent simplification.
* | | Merge pull request #1841 from libgit2/ntk/fix/loose_ambiguousRussell Belfer2013-09-106-15/+62
|\ \ \ | | | | | | | | Make odb_loose return EAMBIGUOUS when required
| * | | odb: Teach loose backend to return EAMBIGUOUSnulltoken2013-09-102-2/+37
| | | |
| * | | path: Make direach() return EUSER on callback errornulltoken2013-09-104-13/+25
|/ / /
* | | Merge pull request #1843 from uh-sem-blee/developmentRussell Belfer2013-09-092-3/+3
|\ \ \ | | | | | | | | fixing headers with bad values for objective-c
| * | | fixing headers with bad values for objective-cJohn Josef2013-09-092-3/+3
| | | |
* | | | Make work if built with threading enabledRussell Belfer2013-09-091-0/+4
| | | |