- 04 Aug, 2012 1 commit
-
-
This updates all the `foreach()` type functions across the library that take callbacks from the user to have a consistent behavior. The rules are: * A callback terminates the loop by returning any non-zero value * Once the callback returns non-zero, it will not be called again (i.e. the loop stops all iteration regardless of state) * If the callback returns non-zero, the parent fn returns GIT_EUSER * Although the parent returns GIT_EUSER, no error will be set in the library and `giterr_last()` will return NULL if called. This commit makes those changes across the library and adds tests for most of the iteration APIs to make sure that they follow the above rules.
Russell Belfer committed
-
- 26 Jul, 2012 1 commit
-
-
This makes sure that an error code returned by the callback function of `git_tree_walk` will stop the iteration and get propagated back to the caller verbatim. Also, this adds a minor helper function `git_tree_entry_byoid` that searches a `git_tree` for an entry with the given OID. This isn't a fast function, but it's easier than writing the loop yourself as an external user of the library.
Russell Belfer committed
-
- 25 Jul, 2012 1 commit
-
-
Michael Schubert committed
-
- 24 Jul, 2012 7 commits
-
-
Fix/issue 787
Russell Belfer committed -
yorah committed
-
yorah committed
-
yorah committed
-
aroben committed
-
yorah committed
-
Carlos Martín Nieto committed
-
- 23 Jul, 2012 3 commits
-
-
Carlos Martín Nieto committed
-
Carlos Martín Nieto committed
-
Asking the library for "" used to give HEAD, but that's trying to impose a default at the wrong layer. Make it fail.
Carlos Martín Nieto committed
-
- 21 Jul, 2012 3 commits
-
-
Carlos Martín Nieto committed
-
Revparse rework
Vicent Martí committed -
This allows us to set options like "some.foo\\ish.var". This closes #830
Carlos Martín Nieto committed
-
- 20 Jul, 2012 1 commit
-
-
tree: fix ordering for git_tree_walk
Vicent Martí committed
-
- 19 Jul, 2012 2 commits
-
-
A diff that is created with a NULL options parameter could result in a NULL prefix string, but diff merge was unconditionally strdup'ing it. I added a test to replicate the issue and then a new method that does the right thing with NULL values.
Russell Belfer committed -
Josh Triplett noticed libgit2 actually does preorder entries in tree_walk_post instead of postorder. Also, we continued walking even when an error occured in the callback. Fix #773; also, allow both pre- and postorder walking.
Michael Schubert committed
-
- 17 Jul, 2012 5 commits
-
-
nulltoken committed
-
Partially fix #530
nulltoken committed -
nulltoken committed
-
Remove old error handling code
Vicent Martí committed -
Michael Schubert committed
-
- 16 Jul, 2012 2 commits
-
-
libgit2.pc.in: also switch to LIB_INSTALL_DIR
Vicent Martí committed -
b3237ac3 changed CMakeList.txt to use the more standard LIB_INSTALL_DIR variable instead of INSTALL_LIB, but forgot to change libgit2.pc.in etc. accordingly.
Michael Schubert committed
-
- 15 Jul, 2012 4 commits
-
-
nulltoken committed
-
nulltoken committed
-
Add support for the more standard LIB_INSTALL_DIR variable
Vicent Martí committed -
Pevents collisions with the original libgit, which also exports those exact symbols. Fixes #822
Vicent Marti committed
-
- 14 Jul, 2012 1 commit
-
-
Not all delta bases are available on the first try. By delaying resolving all deltas until the end, we avoid decompressing some of the data twice or even more times, saving effort and time.
Carlos Martín Nieto committed
-
- 13 Jul, 2012 4 commits
-
-
The correct way to advertise out capabilities is by appending them to the first 'want' line, using SP as separator, instead of NUL as the server does. Inconsistent documentation lead to the use of NUL in libgit2. Fix this so we can request much more efficient packs from the remote which reduces the indexing time considerably.
Carlos Martín Nieto committed -
Ignacio Casal Quinteiro committed
-
More revparse <3
Vicent Martí committed -
refs: fix a memory leak
Vicent Martí committed
-
- 12 Jul, 2012 5 commits
-
-
nulltoken committed
-
nulltoken committed
-
passing 0 to git_strol(32|64) let the implementation guess if it's dealing with an octal number or a decimal one. Let's make it safe and ensure that both 'HEAD@{010}' and 'HEAD@{10}' point at the same commit.
nulltoken committed -
nulltoken committed
-
nulltoken committed
-