summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* revparse: initialize 'parsed' in case the user doesn't give a number with ↵Carlos Martín Nieto2012-07-231-1/+1
| | | | the @-notation
* travis: build with both gcc and clangCarlos Martín Nieto2012-07-231-2/+4
|
* revparse: don't allow an empty stringCarlos Martín Nieto2012-07-232-4/+5
| | | | | Asking the library for "" used to give HEAD, but that's trying to impose a default at the wrong layer. Make it fail.
* tests: plug a leak in the config stressCarlos Martín Nieto2012-07-211-0/+1
|
* Merge pull request #818 from nulltoken/reworkVicent Martí2012-07-218-481/+795
|\ | | | | Revparse rework
| * revparse: deploy git_object_peel()nulltoken2012-07-171-55/+4
| |
| * object: introduce git_object_peel()nulltoken2012-07-173-0/+165
| | | | | | | | Partially fix #530
| * revparse: enhance parsing enginenulltoken2012-07-172-469/+627
| |
| * revparse: extend test coveragenulltoken2012-07-151-2/+40
| |
| * revparse: add reflog test datanulltoken2012-07-152-0/+4
| |
* | config: escape subsection names when creating themCarlos Martín Nieto2012-07-212-2/+27
| | | | | | | | | | | | 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-194-2/+62
|/ / | | | | | | | | | | | | 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.
* | Merge pull request #827 from schu/cleanup-error-cruftVicent Martí2012-07-172-14/+0
|\ \ | | | | | | Remove old error handling code
| * | Remove old error handling codeMichael Schubert2012-07-172-14/+0
|/ /
* | Merge pull request #823 from schu/cmake-install-dirVicent Martí2012-07-163-3/+3
|\ \ | | | | | | libgit2.pc.in: also switch to LIB_INSTALL_DIR
| * | libgit2.pc.in: also switch to LIB_INSTALL_DIRMichael Schubert2012-07-163-3/+3
|/ / | | | | | | | | | | 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.
* | Merge pull request #821 from nacho/developmentVicent Martí2012-07-151-4/+9
|\ \ | | | | | | Add support for the more standard LIB_INSTALL_DIR variable
| * | Add support for the more standard LIB_INSTALL_DIR variableIgnacio Casal Quinteiro2012-07-131-4/+9
| | |
* | | attr: Rename the `git_attr__` exportsVicent Marti2012-07-152-15/+15
| |/ |/| | | | | | | | | | | Pevents collisions with the original libgit, which also exports those exact symbols. Fixes #822
* | indexer: delay resolving deltasCarlos Martín Nieto2012-07-141-22/+24
| | | | | | | | | | | | 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.
* | pkt: correctly advertise capabilititesCarlos Martín Nieto2012-07-131-1/+1
|/ | | | | | | | | | 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.
* Merge pull request #815 from nulltoken/topic/revparse-refacVicent Martí2012-07-134-90/+105
|\ | | | | More revparse <3
| * revparse: fix propagation of errornulltoken2012-07-121-1/+1
| |
| * revparse: only allow decimal specifiers in carete and tilde synatxnulltoken2012-07-121-2/+2
| | | | | | | | | | | | | | | | 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.
| * revparse: fix disambiguation of refs and abbrev oidsnulltoken2012-07-122-7/+56
| |
| * revparse: simplify handling of the colon syntaxnulltoken2012-07-122-73/+36
| |
| * tree: unfound tree entry returns GIT_ENOTFOUNDnulltoken2012-07-122-7/+7
| |
| * tree: prevent git_tree_entry_free() from segfaulting when being passed a ↵nulltoken2012-07-121-0/+3
| | | | | | | | NULL tree_entry
* | Merge pull request #817 from nulltoken/fix/refs-leakVicent Martí2012-07-131-0/+3
|\ \ | |/ |/| refs: fix a memory leak
| * refs: fix a memory leaknulltoken2012-07-121-0/+3
|/
* travis: make it run the tests under valgrindCarlos Martín Nieto2012-07-121-1/+2
|
* Fix memory leak in testRussell Belfer2012-07-121-1/+1
|
* Missed a couple of khash inline dependenciesRussell Belfer2012-07-122-2/+2
|
* Isolate khash inlines from global namespaceRussell Belfer2012-07-122-7/+9
| | | | | khash.h was globally #define'ing "inline" which messes with other files. Let's keep it as "kh_inline".
* Use GIT_INLINE instead of inlineCarlos Martín Nieto2012-07-121-1/+1
|
* tests: fix git_odb_foreach() object countCarlos Martín Nieto2012-07-121-1/+1
| | | | Some objects were added in another PR
* commit: properly export git_commit_nth_gen_ancestor()Carlos Martín Nieto2012-07-121-1/+1
|
* Merge pull request #789 from carlosmn/odb-foreachVicent Martí2012-07-128-0/+219
|\ | | | | odb: add git_odb_foreach()
| * odb: add git_odb_foreach()Carlos Martín Nieto2012-07-038-0/+219
| | | | | | | | | | Go through each backend and list every objects that exists in them. This allows fsck-like uses.
* | Merge pull request #805 from nulltoken/fix/revwalk-email-parsingVicent Martí2012-07-1212-37/+130
|\ \ | | | | | | Fix revwalk email parsing
| * | signature: prevent angle bracket usage in identitynulltoken2012-07-113-22/+53
| | |
| * | revwalk: relax the parsing of the commit timenulltoken2012-07-112-7/+68
| | |
| * | tests: add test commit with angle brackets in the author namenulltoken2012-07-117-8/+9
| | |
* | | Merge pull request #814 from nulltoken/topic/revparse-refacVicent Martí2012-07-128-69/+281
|\ \ \ | | | | | | | | Revparse refactoring: a start
| * | | revparse: deploy git_reference_remote_tracking_from_branch()nulltoken2012-07-121-26/+6
| | | |
| * | | refs: introduce git_reference_remote_tracking_from_branch()nulltoken2012-07-123-0/+144
| | | |
| * | | refs: readonly tests don't need a sandboxed reponulltoken2012-07-121-2/+2
| | | |
| * | | revparse: deploy git_commit_nth_gen_ancestor()nulltoken2012-07-121-21/+2
| | | |