summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge upstream/developmentCarlos Martín Nieto2011-05-171-1/+1
|\ \
| * | ref test: update a forgotten repo -> repo2Carlos Martín Nieto2011-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Commit 34e5d87e0512f2a3dfd6 left one of these unchanged we're trying to read from a free'd repository. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | | Move config to a backend structureCarlos Martín Nieto2011-05-101-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuration options can come from different sources. Currently, there is only support for reading them from a flat file, but it might make sense to read it from a database at some point. Move the parsing code into src/config_file.c and create an include file include/git2/config_backend.h to allow for other backends to be developed. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | | Merge remote-tracking branch 'upstream/development' into configCarlos Martín Nieto2011-05-056-29/+165
|\ \ \ | |/ /
| * | Merge pull request #151 from carlosmn/root-commit.Vicent Martí2011-05-021-0/+68
| |\ \ | | | | | | | | Support root commits
| | * | Add root commit testCarlos Martín Nieto2011-04-291-0/+68
| | | | | | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
| * | | Merge pull request #146 from nordsturm/fix_subtrees.Vicent Martí2011-05-021-0/+40
| |\ \ \ | | | | | | | | | | Fix tree-entry attribute convertion (fix corrupted trees)
| | * | | Fix tree-entry attribute convertion (fix corrupted trees)Sergey Nikishin2011-04-261-0/+40
| | |/ / | | | | | | | | | | | | | | | | | | | | Magic constant replaced by direct to-string covertion because of: 1) with value length 6 (040000 - subtree) final tree will be corrupted; 2) for wrong values length <6 final tree will be corrupted too.
| * | | Merge pull request #145 from schu/fix-unused-warnings.Vicent Martí2011-05-011-1/+1
| |\ \ \ | | | | | | | | | | Fix -Wunused-but-set-variable warnings
| | * | | Fix -Wunused-but-set-variable warningsschu2011-04-261-1/+1
| | |/ / | | | | | | | | | | | | | | | | As of gcc 4.6 -Wall includes -Wunused-but-set-variable. Use GIT_UNUSED or remove actually unused variables to prevent those warnings.
| * | | Change implementation of refs tests that alter the current repository to ↵nulltoken2011-05-011-27/+19
| |/ / | | | | | | | | | make them run against a temporary clone of the test repository
| * | Merged pull request #135 from carlosmn/valgrind.Vicent Martí2011-04-234-1/+23
| |\ \ | | | | | | | | Fix memory leaks in the tests
| | * | tests: free the test suite nameCarlos Martín Nieto2011-04-131-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
| | * | tests: don't leak objectsCarlos Martín Nieto2011-04-133-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If we don't create any leaks in the tests, we can use them to search for leaks in the implementation. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
| * | | Add `git_tag_list`Vicent Marti2011-04-121-0/+14
| |/ / | | | | | | | | | | | | Lists all the tag references in a repository using a custom callback. Includes unit tests courtesy of Emeric Fermas <3
* | | config: allow uppercase number suffixesCarlos Martín Nieto2011-04-192-0/+12
| | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | | config: add tests for number suffixCarlos Martín Nieto2011-04-112-0/+30
| | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | | Merge upstream/developmentCarlos Martín Nieto2011-04-1110-20/+181
|\ \ \ | |/ /
| * | Fix path normalization testsVicent Marti2011-04-101-2/+2
| | | | | | | | | | | | | | | They were backtracking too deep into the filesystem on Linux, where the tests were running directly on `tmp/`.
| * | Use Z_BEST_SPEED for filebuf deflatingVicent Marti2011-04-101-1/+2
| | | | | | | | | | | | This is what Git uses by default for all deflating.
| * | Add two new accessors to the repositorynulltoken2011-04-091-0/+4
| | | | | | | | | | | | git_repository_path() and git_repository_workdir() respectively return the path to the git repository and the working directory. Those paths are absolute and normalized.
| * | Do not declare variables in the middle of a funcVicent Marti2011-04-082-6/+3
| | |
| * | Add new method `git_repository_is_empty`Vicent Marti2011-04-081-0/+14
| | |
| * | Remove unused variables from test filesVicent Marti2011-04-082-4/+0
| | |
| * | refs: Fix issue when packing weak tagsVicent Marti2011-04-082-2/+8
| | | | | | | | | | | | | | | Weak tags (e.g. tags that point directly to a normal object instead of a tag object) were failing to be packed.
| * | tag: don't allow tags to non-existent objectsCarlos Martín Nieto2011-04-081-13/+2
| | | | | | | | | | | | | | | | | | | | | These indicate an inconsistency in the repository which we've created, so don't allow them. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
| * | fix git_treebuilder_insert probrem.Shuhei Tanuma2011-04-081-0/+29
| | | | | | | | | | | | couldn't add new entry when inserting new one with `git_treebuilder_insert`.
| * | redis backendDmitry Kovega2011-04-082-0/+125
| | |
* | | Merge remote-tracking branch 'upstream/development' into configCarlos Martín Nieto2011-04-065-18/+215
|\ \ \ | |/ /
| * | Build & write custom trees in memoryVicent Marti2011-04-041-3/+50
| |/
| * Fix tag reference name in testrepo.gitnulltoken2011-04-043-7/+12
| | | | | | | | | | | | | | The git test repository was holding a wrongly named tag reference ("very-simple") pointing at a tag named "e90810b". This mistake (mine :-/ ) originates back to https://github.com/libgit2/libgit2/commit/9282e92 Whole credit goes to @tclem for having spotted this.
| * Merge branch 'tagging' of https://github.com/nulltoken/libgit2 into developmentVicent Marti2011-04-022-9/+154
| |\ | | | | | | | | | | | | | | | Conflicts: include/git2/tag.h src/tag.c
| | * Add git_tag_delete()nulltoken2011-03-301-0/+14
| | |
| | * Add git_tag_create_o_f() and git_tag_create_f() which overwrite existing tag ↵nulltoken2011-03-301-0/+36
| | | | | | | | | | | | reference, if any
| | * Fix memory leak in tag releated testsnulltoken2011-03-301-0/+5
| | |
| | * Prevent tag_create() from creating a conflicting referencenulltoken2011-03-301-0/+29
| | |
| | * Add test demonstrating that one can create a tag pointing at a non existent ↵nulltoken2011-03-301-1/+42
| | | | | | | | | | | | target
| | * Enforce the testing of the correct creation of a tagnulltoken2011-03-301-0/+1
| | |
| | * Fix misleading commentsnulltoken2011-03-301-2/+2
| | |
| | * Add test ensuring one can not create an oid reference which targets at an ↵nulltoken2011-03-291-0/+21
| | | | | | | | | | | | unknown id
| | * Replace gitfo_unlink() calls with git_reference_delete() in refs related testsnulltoken2011-03-291-6/+3
| | |
| * | Change `parse` methods to const bufferVicent Marti2011-04-021-5/+5
| |/ | | | | | | Signed-off-by: Vicent Marti <tanoku@gmail.com>
* | config: test for a variable on its ownCarlos Martín Nieto2011-04-042-0/+20
| | | | | | | | | | | | | | If a variable is on its own, truth should be assumed. Check this is true in our code. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | config: add testsCarlos Martín Nieto2011-04-046-0/+143
|/ | | | | | | These tests are basic, but they should tell us when we've broken something. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Check for looser reference namesCarlos Martín Nieto2011-03-291-1/+2
| | | | | | | res/dummy/a and refs/stash must pass. The other rules are already tested by the rest of the checks. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Enforce coding conventions in refs.cVicent Marti2011-03-291-5/+5
| | | | | Internal methods are static and without the git prefix. 'Force' methods have a `_f` prefix to match the other 'force' methods.
* Make overwrite test more comprehensiveCarlos Martín Nieto2011-03-291-3/+42
| | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* force-rename test: check for the right nameCarlos Martín Nieto2011-03-291-3/+3
| | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Add tests covering overwriting referencesCarlos Martín Nieto2011-03-291-0/+98
| | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Update the SQLite backendVicent Marti2011-03-281-9/+12
|