- 09 Aug, 2012 1 commit
-
-
Russell Belfer committed
-
- 06 Aug, 2012 4 commits
-
-
There is a little cleanup necessary from PR #843. Since the new callbacks return `GIT_EUSER` we have to be a little careful about return values when they are used internally to the library. Also, callbacks should be checked for non-zero return values, not just less than zero.
Russell Belfer committed -
Vicent Marti committed
-
Vicent Marti committed
-
Conflicts: src/notes.c src/transports/git.c src/transports/http.c src/transports/local.c tests-clar/odb/foreach.c
Vicent Marti committed
-
- 04 Aug, 2012 3 commits
-
-
Otherwise we get an incomplete type error, since git_remote_callbacks isn't declared yet.
Michael Schubert committed -
Missed this one, ironically enough.
Russell Belfer committed -
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
-
- 02 Aug, 2012 2 commits
-
-
Vicent Marti committed
-
Carlos Martín Nieto committed
-
- 01 Aug, 2012 8 commits
-
-
Conflicts: src/netops.c src/netops.h src/oid.c
Vicent Marti committed -
attr: Do not export variables externally
Vicent Martí committed -
Vicent Marti committed
-
repository: add a getter and remove function for git's prepared message
Vicent Martí committed -
Fixes #824 Exporting variables in a dynamic library is a PITA. Let's keep these values internally and wrap them through a helper method. This doesn't break the external API. @arrbee, aren't you glad I turned the `GIT_ATTR_` macros into function macros?
✨ Vicent Marti committed -
Add function to query for compile time settings.
Vicent Martí committed -
Sascha Cunz committed
-
The 'git revert/cherry-pick/merge -n' commands leave .git/MERGE_MSG behind so that git-commit can find it. As we don't yet support these operations, users who are shelling out to let git perform these operations haven't had a convenient way to get this message. These functions allow the user to retrieve the message and remove it when she's created the commit.
Carlos Martín Nieto committed
-
- 31 Jul, 2012 3 commits
-
-
git_config_find_* does not set a git error
Vicent Martí committed -
travis: be more idiomatic with the environment
Vicent Martí committed -
odb: allow creating an ODB backend from a packfile index
Vicent Martí committed
-
- 30 Jul, 2012 10 commits
-
-
Unify the transport code
Vicent Martí committed -
SSL isn't the only way that a transport can be encrypted. The new name will make it easier to merge the SSH support.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Using the callbacks makes it clearer and reduces the amount of #ifdefs and ifs and we need in the code.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Instad of each transport having its own function and logic to get to its refs, store them directly in transport. Leverage the new gitno_buffer to make the parsing and storing of the refs use common code and get rid of the git_protocol struct.
Carlos Martín Nieto committed -
This allows us to add capabilitites to both at the same time, keeps them in sync and removes a lot of code. gitno_buffer now uses a callback to fill its buffer, allowing us to use the same interface for git and http (which uses callbacks).
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
For the transition, http is going to keep its own logic until the git/common code catches up with the implied multi_ack that http has. This also has the side-effect of making the code cleaner and more correct regardingt he protocol.
Carlos Martín Nieto committed -
git_oid_cmp: inline memcmp by hand to optimize
Russell Belfer committed
-
- 29 Jul, 2012 1 commit
-
-
git.git uses an inlined hashcmp function instead of memcmp, since it performes much better when comparing hashes (most hashes compared diverge within the first byte). Measurements and rationale for the curious reader: http://thread.gmane.org/gmane.comp.version-control.git/172286
Michael Schubert committed
-
- 28 Jul, 2012 1 commit
-
-
Michael Schubert committed
-
- 27 Jul, 2012 7 commits
-
-
odb: add some documentation to the foreach() test
Vicent Martí committed -
Add a struct for network callbacks
Vicent Martí committed -
Yes, we can get the repository from the owner of the object, but having it marked explicitly makes the API more consistent.
Vicent Marti committed -
Vicent Marti committed
-
Vicent Marti committed
-
Vicent Marti committed
-
Carlos Martín Nieto committed
-