summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | fetch: remove timeout codeCarlos Martín Nieto2012-07-301-13/+0
| | | | | | | |
* | | | | | | | ssl: use the callback instead of ifs to determine how to get dataCarlos Martín Nieto2012-07-301-40/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the callbacks makes it clearer and reduces the amount of #ifdefs and ifs and we need in the code.
* | | | | | | | transport: store the refs in a common areaCarlos Martín Nieto2012-07-308-297/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | remote: use the same code to control git and httpCarlos Martín Nieto2012-07-3010-317/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | | | | | | network: implement multi_ack for the git transportCarlos Martín Nieto2012-07-304-26/+85
| | | | | | | |
* | | | | | | | remote: start moving the protocol to a common areaCarlos Martín Nieto2012-07-306-167/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | git_oid_cmp: inline memcmp by hand to optimizeMichael Schubert2012-07-292-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | Fix -Wuninitialized warningMichael Schubert2012-07-281-1/+1
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Merge pull request #834 from carlosmn/network-callbacksVicent Martí2012-07-272-3/+11
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Add a struct for network callbacks
| * | | | | | | Add a struct for network callbacksCarlos Martín Nieto2012-07-212-3/+11
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Currently only update_tips is used, but it prepares the way for progress output during download.
* | | | | | | branch: Add `repository` argument to `create`Vicent Marti2012-07-272-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Yes, we can get the repository from the owner of the object, but having it marked explicitly makes the API more consistent.
* | | | | | | Merge remote-tracking branch 'nulltoken/topic/branch-rework' into developmentVicent Marti2012-07-274-110/+107
|\ \ \ \ \ \ \
| * | | | | | | branch: enforce git_branch_delete() parameter checkingnulltoken2012-07-241-0/+1
| | | | | | | |
| * | | | | | | refs: drop git_reference_remote_tracking_from_branch()nulltoken2012-07-241-74/+0
| | | | | | | |
| * | | | | | | branch: introduce git_branch_tracking()nulltoken2012-07-242-1/+69
| | | | | | | |
| * | | | | | | branch: make git_branch_move() reference basednulltoken2012-07-241-12/+16
| | | | | | | |
| * | | | | | | branch: introduce git_reference_is_branch()nulltoken2012-07-241-0/+7
| | | | | | | |
| * | | | | | | branch: introduce git_branch_lookup()nulltoken2012-07-241-0/+11
| | | | | | | |
| * | | | | | | branch: change git_branch_create() to make it return a referencenulltoken2012-07-241-9/+5
| | | | | | | |
| * | | | | | | branch: remove useless headernulltoken2012-07-242-18/+2
| | |_|/ / / / | |/| | | | |
* | | | | | | reflog: Rename `entry_drop` to `drop`Vicent Marti2012-07-271-1/+1
| | | | | | |
* | | | | | | Merge remote-tracking branch 'nulltoken/topic/reflog-delete' into developmentVicent Marti2012-07-272-102/+222
|\ \ \ \ \ \ \
| * | | | | | | reflog: keep the reflog name in sync with the reference namenulltoken2012-07-251-0/+22
| | | | | | | |
| * | | | | | | reflog: prevent git_reflog_append() from persisting the reflog back to disknulltoken2012-07-251-81/+59
| | | | | | | |
| * | | | | | | reflog: prevent git_reflog_read() from chocking when no log exists yetnulltoken2012-07-251-9/+16
| | | | | | | |
| * | | | | | | reflog: introduce git_reflog_write()nulltoken2012-07-252-57/+114
| | | | | | | |
| * | | | | | | reflog: rename git_reflog_write() to git_reflog_append()nulltoken2012-07-251-1/+1
| | | | | | | |
| * | | | | | | reflog: introduce git_reflog_entry_drop()nulltoken2012-07-251-4/+58
| | | | | | | |
| * | | | | | | reflog: add GIT_OID_HEX_ZERO constantnulltoken2012-07-252-1/+3
| |/ / / / / /
* | | | | | | remote: fix C99-ismCarlos Martín Nieto2012-07-271-1/+2
| | | | | | |
* | | | | | | Remotes: Use correct url in git_remote_connectSascha Cunz2012-07-272-1/+22
| | | | | | |
* | | | | | | Remotes: Save a cleaned pushurl (by deleting it from the config)Sascha Cunz2012-07-271-4/+13
| | | | | | |
* | | | | | | Remotes: Setter for url+pushurl; Getter for pushurlSascha Cunz2012-07-261-0/+32
| | | | | | |
* | | | | | | Remotes: Load/Save for fetch.foo.pushurlSascha Cunz2012-07-262-0/+33
| | | | | | |
* | | | | | | Remove unneccessary string transformationSascha Cunz2012-07-261-1/+1
| |_|_|/ / / |/| | | | |
* | | | | | Add flag to turn off pathspec testing for diff and statusyorah2012-07-242-2/+5
| | | | | |
* | | | | | Fix getting status of files containing bracketsyorah2012-07-242-9/+20
| | | | | |
* | | | | | Add git_buf_unescape and git__unescape to unescape all characters in a ↵yorah2012-07-245-11/+35
|/ / / / / | | | | | | | | | | | | | | | string (in-place)
* | | | | update_tips: report error if it fails to create a refCarlos Martín Nieto2012-07-241-1/+1
| | | | |
* | | | | revparse: initialize 'parsed' in case the user doesn't give a number with ↵Carlos Martín Nieto2012-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | the @-notation
* | | | | revparse: don't allow an empty stringCarlos Martín Nieto2012-07-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Asking the library for "" used to give HEAD, but that's trying to impose a default at the wrong layer. Make it fail.
* | | | | Merge pull request #818 from nulltoken/reworkVicent Martí2012-07-213-479/+655
|\ \ \ \ \ | |/ / / / |/| | | | Revparse rework
| * | | | revparse: deploy git_object_peel()nulltoken2012-07-171-55/+4
| | | | |
| * | | | object: introduce git_object_peel()nulltoken2012-07-171-0/+69
| | | | | | | | | | | | | | | | | | | | Partially fix #530
| * | | | revparse: enhance parsing enginenulltoken2012-07-172-469/+627
| | | | |
* | | | | config: escape subsection names when creating themCarlos Martín Nieto2012-07-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to set options like "some.foo\\ish.var". This closes #830
* | | | | Merge pull request #831 from schu/tree-walk-orderVicent Martí2012-07-201-8/+12
|\ \ \ \ \ | |_|/ / / |/| | | | tree: fix ordering for git_tree_walk
| * | | | tree: fix ordering for git_tree_walkMichael Schubert2012-07-191-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Fix bug with merging diffs with null optionsRussell Belfer2012-07-193-2/+14
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Remove old error handling codeMichael Schubert2012-07-172-14/+0
| |_|/ |/| |