summaryrefslogtreecommitdiff
path: root/tests-clar
Commit message (Collapse)AuthorAgeFilesLines
* Add missing accessor for fetchRecurseSubmodulesdevelopmentRussell Belfer2012-09-071-0/+11
| | | | | | When `git_submodule` became an opaque structure, I forgot to add accessor functions for the fetchRecurseSubmodules config setting. This fixes that.
* Merge remote-tracking branch 'arrbee/diff-iterator' into developmentVicent Marti2012-09-0610-293/+613
|\
| * Diff iteratorsRussell Belfer2012-09-0510-293/+613
| | | | | | | | | | | | | | | | | | | | | | This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object.
* | Test for gitmodules only submodule defRussell Belfer2012-09-052-1/+8
|/ | | | | | This should confirm that issue #835 is fixed where a submodule that is only declared in the .gitmodules file was not accessible via the submodule APIs.
* Merge pull request #856 from libgit2/utf8-winVicent Martí2012-09-041-13/+13
|\ | | | | Windows: Perform UTF-8 path conversion on the Stack
| * Add bounds checking to UTF-8 conversionVicent Marti2012-08-281-3/+3
| |
| * windows: Keep UTF-8 on the stack yoVicent Marti2012-08-281-13/+13
| |
* | clar: Clear errors on shutdownVicent Marti2012-09-041-0/+1
| |
* | repository: make initialization cope with missing core.worktreenulltoken2012-08-291-0/+15
|/
* Merge branch 'branch-delete-ref' into developmentVicent Marti2012-08-271-26/+17
|\ | | | | | | | | Conflicts: include/git2/refs.h
| * branch: Change `git_branch_delete` to take a refVicent Marti2012-08-261-26/+17
| |
* | Merge pull request #904 from arrbee/better-object-peelVicent Martí2012-08-271-3/+13
|\ \ | | | | | | Make git_object_peel a bit smarter
| * | Make git_object_peel a bit smarterRussell Belfer2012-08-271-3/+13
| |/ | | | | | | | | | | | | | | | | | | | | This expands the types of peeling that `git_object_peel` knows how to do to include TAG -> BLOB peeling, and makes the errors slightly more consistent depending on the situation. It also adds a new special behavior where peeling to ANY will peel until the object type changes (e.g. chases TAGs to a non-TAG). Using this expanded peeling, this replaces peeling code that was embedded in `git_tag_peel` and `git_reset`.
* | Merge pull request #897 from nulltoken/topic/git_reference_check_formatVicent Martí2012-08-271-115/+231
|\ \ | | | | | | refs: expose git_reference_normalize_name()
| * | refs: expose git_reference_normalize_name()nulltoken2012-08-271-115/+231
| | |
* | | revwalk: refuse push of non-commit objectsMichael Schubert2012-08-271-0/+8
| |/ |/| | | | | | | Check the type of the pushed object immediately instead of starting the walk and failing in between.
* | Merge pull request #896 from ben/revparse-ambiguousVicent Martí2012-08-251-0/+9
|\ \ | | | | | | Revparse: GIT_EAMBIGUOUS
| * | Revparse: GIT_EAMBIGUOUSBen Straub2012-08-251-0/+9
| | | | | | | | | | | | Revparse now returns EAMBIGUOUS if the the spec doesn't match any refs/tags, and is <4 characters.
* | | Merge pull request #852 from arrbee/submodule-extensionsVicent Martí2012-08-24277-15/+1859
|\ \ \ | |_|/ |/| | Submodule extensions
| * | Working implementation of git_submodule_statusRussell Belfer2012-08-242-15/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big redesign of the git_submodule_status API and the implementation of the redesigned API. It also fixes a number of bugs that I found in other parts of the submodule API while writing the tests for the status part. This also fixes a couple of bugs in the iterators that had not been noticed before - one with iterating when there is a gitlink (i.e. separate-work-dir) and one where I was treating anything even vaguely submodule-like as a submodule, more aggressively than core git does.
| * | Fix valgrind issues and leaksRussell Belfer2012-08-242-0/+83
| | | | | | | | | | | | | | | | | | This fixes up a number of problems flagged by valgrind and also cleans up the internal `git_submodule` allocation handling overall with a simpler model.
| * | Major submodule rewriteRussell Belfer2012-08-246-11/+501
| | | | | | | | | | | | | | | This replaces the old submodule API with a new extended API that supports most of the things that can be done with `git submodule`.
| * | New submodule test dataRussell Belfer2012-08-24270-0/+1007
| | |
* | | Fix crash with adding internal ignoresRussell Belfer2012-08-241-0/+15
|/ / | | | | | | | | | | Depending on what you had done before adding new items to the internal ignores list, it was possible for the cache of ignore data to be uninitialized.
* | Fix errors on Win32 with new repo initRussell Belfer2012-08-242-16/+29
| |
* | Fix warnings and merge issues on Win64Russell Belfer2012-08-237-13/+15
| |
* | Some cleanup suggested during reviewRussell Belfer2012-08-221-3/+6
| | | | | | | | | | | | | | | | | | | | This cleans up a number of items suggested during code review with @vmg, including: * renaming "outside repo" config API to `git_config_open_default` * killing the `git_config_open_global` API * removing the `git_` prefix from the static functions in fileops * removing some unnecessary functionality from the "cp" command
* | Don't reference stack vars in cleanup callbackRussell Belfer2012-08-221-4/+7
| | | | | | | | | | | | If you use the clar cleanup callback function, you can't pass a reference pointer to a stack allocated variable because when the cleanup function runs, the stack won't exist anymore.
* | Add template dir and set gid to repo initRussell Belfer2012-08-2216-1/+845
|/ | | | | | | | | | | | | | | | | This extends git_repository_init_ext further with support for initializing the repository from an external template directory and with support for the "create shared" type flags that make a set GID repository directory. This also adds tests for much of the new functionality to the existing `repo/init.c` test suite. Also, this adds a bunch of new utility functions including a very general purpose `git_futils_mkdir` (with the ability to make paths and to chmod the paths post-creation) and a file tree copying function `git_futils_cp_r`. Also, this includes some new path functions that were useful to keep the code simple.
* Minor bug fixes in diff codeRussell Belfer2012-08-221-1/+2
| | | | | | | In looking at PR #878, I found a few small bugs in the diff code, mostly related to work that can be avoided when processing tree- to-tree diffs that was always being carried out. This commit has some small fixes in it.
* Merge pull request #891 from arrbee/internal-ignore-apiVicent Martí2012-08-221-0/+54
|\ | | | | API for managing in-memory ignore rules
| * Wrap up ignore API and add testsRussell Belfer2012-08-221-0/+54
| | | | | | | | This fills out the ignore API and adds tests.
* | tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()nulltoken2012-08-211-5/+5
| |
* | filemode: deploy enum usagenulltoken2012-08-213-55/+59
|/
* Win32: test core.autocrlfBen Straub2012-08-211-7/+23
|
* Tests: close file handles before assertingBen Straub2012-08-201-5/+9
| | | | | Avoids getting ERROR_SHARING_VIOLATION on win32 and killing the entire clar run.
* treebuilder: enhance attributes handling on insertionnulltoken2012-08-191-0/+118
|
* Add deprecated-mode.git test repositorynulltoken2012-08-1910-0/+16
|
* Merge pull request #778 from ben/cloneVicent Martí2012-08-1920-6/+333
|\ | | | | Clone
| * Checkout: fix memory leak in tests.Ben Straub2012-08-061-0/+2
| |
| * Checkout: fix problem with detached HEAD.Ben Straub2012-07-311-0/+5
| |
| * Checkout: fix crlf tests under win32.Ben Straub2012-07-311-3/+8
| |
| * Checkout: crlf filter.Ben Straub2012-07-311-9/+3
| |
| * Checkout: handle file modes properly.Ben Straub2012-07-315-4/+8
| | | | | | | | Global file mode override now works properly with the file mode stored in the tree node.
| * Try to fix Travis.Ben Straub2012-07-311-1/+7
| |
| * Enable stats on git_index_read_tree.Ben Straub2012-07-302-2/+2
| | | | | | | | | | Replace with the contents of git_index_read_tree_with_stats() and improve documentation comments.
| * Checkout: disable file-mode test on win32.Ben Straub2012-07-271-0/+3
| |
| * Fix testrepo ref count to include new branch.Ben Straub2012-07-271-1/+1
| |
| * Checkout: add head- and ref-centric checkouts.Ben Straub2012-07-276-5/+66
| | | | | | | | | | | | | | | | | | Renamed git_checkout_index to what it really was, and removed duplicate code from clone.c. Added git_checkout_ref, which updates HEAD and hands off to git_checkout_head. Added tests for the options the caller can pass to git_checkout_*.
| * Merge remote-tracking branch 'upstream/development' into test-mergeBen Straub2012-07-2724-190/+763
| |\