summaryrefslogtreecommitdiff
path: root/tests/resources/testrepo.git
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6138 from ccstolley/ccs_packedrefs_fastEdward Thomson2022-01-301-1/+1
|\ | | | | refs: Speed up packed lookups.
| * refs: Speed up packed lookups.Colin Stolley2021-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently ref lookups require loading the entire packed-refs file into a hashmap in memory. For repos with large numbers of refs this can be painfully slow. This patch replaces the existing lookup code and instead mmap()'s the packed-refs file and performs a binary search to locate the ref entry. Git uses a similiar approach. The old hash table codepath is still used for unsorted packed-refs files. This patch also fixes a minor bug where the "peeled" trait is never parsed correctly from the packed-refs header.
* | Add a branch with a empty reflog into testrepo.gitYoichi Nakayama2021-10-222-0/+1
|/
* commit-graph: Introduce a parser for commit-graph fileslhchavez2021-01-101-0/+0
| | | | | | | | This change is the first in a series to add support for git's commit-graph. This should speed up commit graph traversals by avoiding object parsing and allowing some operations to terminate earlier. Part of: #5757
* multipack: Introduce a parser for multi-pack-index fileslhchavez2020-10-051-0/+0
| | | | | | | This change is the first in a series to add support for git's multi-pack-index. This should speed up large repositories significantly. Part of: #5399
* smart: use push_glob instead of manual filteringEtienne Samson2019-08-211-0/+1
| | | | | | | | | | The code worked under the assumption that anything under `refs/tags` are tag objects, and all the rest would be peelable to a commit. As it is completely valid to have tags to blobs under a non `refs/tags` ref, this would cause failures when trying to peel a tag to a commit. Fix the broken filtering by switching to `git_revwalk_push_glob`, which already handles this case.
* tests: fix permissions on testrepo.git index filePatrick Steinhardt2017-02-131-0/+0
|
* tests: repo: assert discovery starting at Win32 roots finishesPatrick Steinhardt2017-02-081-0/+0
| | | | | | | | | | As of recently, we failed to correctly discover repositories at a Win32 system root. Instead of aborting the upwards-traversal of the file system, we were looping infinitely when traversal started at either a Win32 drive prefix ("C:/") or a network path ("//somehost"). The issue has been fixed, so add a test to catch regressions.
* revwalk: introduce tests that hide old commitsEdward Thomson2016-10-0613-0/+12
| | | | | | Introduce some tests that show some commits, while hiding some commits that have a timestamp older than the common ancestors of these two commits.
* Rename tests-clar to testsBen Straub2013-11-1485-0/+108
|
* Moved testing resources to clar, and removed old tests directory.Ben Straub2012-03-3153-43/+0
| | | | Removed the BUILD_CLAR CMake flag, and updated the readme.
* Add test commit containing subtrees and filesnulltoken2011-10-1311-0/+2
|
* commit: properly parse empty commit messagesBrodie Rao2011-10-124-1/+5
| | | | | | | | | This ensures commit->message is always non-NULL, even if the commit message is empty or consists of only a newline. One such commit can be found in the wild in the jQuery repository: https://github.com/jquery/jquery/commit/25b424134f9927a5bf0bab5cba836a0aa6c3cfc1
* Add a test for remote parsingCarlos Martín Nieto2011-06-261-0/+3
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add a test for overriding configCarlos Martín Nieto2011-06-171-0/+5
| | | | | | The repo's configuration should take precedence over the global one. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Revert "threads: Fix TLS declarations"Vicent Marti2011-06-071-191/+2
| | | | This commit uploaded an old broken test. Oops!
* threads: Fix TLS declarationsVicent Marti2011-06-071-2/+191
| | | | | Cleanup the thread-utils file. Do not define TLS if libgit2 is not threadsafe.
* Do not declare variables in the middle of a funcVicent Marti2011-04-081-0/+0
|
* refs: Fix issue when packing weak tagsVicent Marti2011-04-081-0/+1
| | | | | Weak tags (e.g. tags that point directly to a normal object instead of a tag object) were failing to be packed.
* Fix tag reference name in testrepo.gitnulltoken2011-04-041-0/+0
| | | | | | | 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.
* Enforced refs handling tests.nulltoken2011-02-051-0/+1
| | | | | - Added a test to ensure that a nested symbolic reference is properly resolved. - Added comparisons of object ids.
* Merge nulltoken's reference parsing codenulltoken2011-01-298-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the commits have been squashed into a single one before refactoring the final code, to keep everything tidy. Individual commit messages are as follows: Added repository reference looking up functionality placeholder. Added basic reference database definition and caching infrastructure. Removed useless constant. Added GIT_EINVALIDREFNAME error and description. Added missing description for GIT_EBAREINDEX. Added GIT_EREFCORRUPTED error and description. Added GIT_ETOONESTEDSYMREF error and description. Added resolving of direct and symbolic references. Prepared the packed-refs parsing. Added parsing of the packed-refs file content. When no loose reference has been found, the full content of the packed-refs file is parsed. All of the new (i.e. not previously parsed as a loose reference) references are eagerly stored in the cached references storage. The method packed_reference_file__parse() is in deer need of some refactoring. :-) Extracted to a method the parsing of the peeled target of a tag. Extracted to a method the parsing of a standard packed ref. Fixed leaky removal of the cached references. Ensured that a previously parsed packed reference isn't returned if a more up-to-date loose reference exists. Enhanced documentation of git_repository_reference_lookup(). Moved some refs related constants from repository.c to refs.h. Made parsing of a packed tag reference more robust. Updated git_repository_reference_lookup() documentation. Added some references to the test repository. Added some tests covering tag references looking up. Added some tests covering symbolic and head references looking up. Added some tests covering packed references looking up.
* Change git_repository initialization to use a pathVicent Marti2010-11-0229-0/+17
The constructor to git_repository is now called 'git_repository_open(path)' and takes a path to a git repository instead of an existing ODB object. Unit tests have been updated accordingly and the two test repositories have been merged into one. Signed-off-by: Vicent Marti <tanoku@gmail.com>