summaryrefslogtreecommitdiff
path: root/tests-clar/resources
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'arrbee/diff-iterator' into developmentVicent Marti2012-09-063-0/+0
|\
| * Diff iteratorsRussell Belfer2012-09-053-0/+0
| | | | | | | | | | | | | | | | | | | | | | 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-051-0/+3
|/ | | | | | 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.
* New submodule test dataRussell Belfer2012-08-24270-0/+1007
|
* Add template dir and set gid to repo initRussell Belfer2012-08-2213-0/+472
| | | | | | | | | | | | | | | | | 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.
* Add deprecated-mode.git test repositorynulltoken2012-08-1910-0/+16
|
* Merge pull request #778 from ben/cloneVicent Martí2012-08-1914-2/+4
|\ | | | | Clone
| * Checkout: handle file modes properly.Ben Straub2012-07-314-1/+1
| | | | | | | | Global file mode override now works properly with the file mode stored in the tree node.
| * Checkout: add head- and ref-centric checkouts.Ben Straub2012-07-275-0/+1
| | | | | | | | | | | | | | | | | | 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-274-0/+13
| |\
| * \ Merge branch 'development' into cloneBen Straub2012-07-1711-3/+8
| |\ \
| * | | Checkout: handle symlinks.Ben Straub2012-07-165-1/+2
| | | | | | | | | | | | Includes unfinished win32 implementation.
| * | | Add checkout test suite.Ben Straub2012-07-131-1/+1
| | | | | | | | | | | | | | | | Removed 'bare' option from test repository to allow checkout tests.
* | | | Fix config parser boundary logicRussell Belfer2012-08-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | The config file parser was not working right if there was no whitespace between the value name and the equals sign. This fixes that.
* | | | Test trailing space after ref oidJoshua Peek2012-08-091-0/+1
| | | |
* | | | Parse ref oids without trailing newlineJoshua Peek2012-08-091-0/+1
| |_|/ |/| |
* | | Merge remote-tracking branch 'nulltoken/topic/branch-rework' into developmentVicent Marti2012-07-272-0/+4
|\ \ \
| * | | branch: introduce git_branch_tracking()nulltoken2012-07-242-0/+4
| | | |
* | | | Tests: Test remote's pushurlSascha Cunz2012-07-261-0/+5
|/ / /
* | | revparse: add reflog test datanulltoken2012-07-152-0/+4
| |/ |/|
* | tests: add test commit with angle brackets in the author namenulltoken2012-07-113-0/+1
| |
* | diff: make inter-hunk-context default value git-compliantyorah2012-07-028-3/+7
|/ | | | Default in git core is 0, not 3
* Merge remote-tracking branch 'yorah/fix/notes-creation' into developmentVicent Marti2012-06-196-0/+1
|\ | | | | | | | | Conflicts: src/notes.c
| * notes: add test resource with faked two-level fanoutyorah2012-06-086-0/+1
| |
* | Fix filemode comparison in diffsRussell Belfer2012-06-0820-0/+49
|/ | | | | | | | | | | | | | | File modes were both not being ignored properly on platforms where they should be ignored, nor be diffed consistently on platforms where they are supported. This change adds a number of diff and status filemode change tests. This also makes sure that filemode-only changes are included in the diff output when they occur and that filemode changes are ignored successfully when core.filemode is false. There is no code that automatically toggles core.filemode based on the capabilities of the current platform, so the user still needs to be careful in their .git/config file.
* Merge pull request #684 from benstraub/rev-parseVicent Martí2012-06-0711-0/+21
|\ | | | | Rev parse
| * Merge branch 'development' into rev-parseBen Straub2012-06-0545-0/+499
| |\ | | | | | | | | | | | | | | | Conflicts: src/util.h tests-clar/refs/branches/listall.c
| * | Rebasing onto libgit2/development: cleanup.Ben Straub2012-05-1110-0/+17
| | |
| * | Rev-parse: "ref@{upstream}" syntax.Ben Straub2012-05-111-0/+4
| | | | | | | | | | | | | | | Added tracking configuration to the test repo's config to support unit tests.
* | | Fix git_status_file for files that start with a character > 0x7fAdam Roben2012-06-071-0/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | git_status_file would always return GIT_ENOTFOUND for these files. The underlying bug was that git__strcmp_cb, which is used by git_path_with_stat_cmp to sort entries in the working directory, compares strings based on unsigned chars (this is confirmed by the strcmp(3) manpage), while git__prefixcmp, which is used by workdir_iterator__entry_cmp to search for a path in the working directory, compares strings based on char. So the sort puts this path at the end of the list, while the search expects it to be at the beginning. The fix was simply to make git__prefixcmp compare using unsigned chars, just like strcmp(3). The rest of the change is just adding/updating tests.
* | Fix status for files under ignored dirsRussell Belfer2012-05-1623-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a bug where tracked files inside directories that were inside ignored directories where not being found by status. To make that a little clearer, if you have a .gitignore with: ignore/ And then have the following files: ignore/dir/tracked <-- actually a tracked file ignore/dir/untracked <-- should be ignored Then we would show the tracked file as being removed (because when we got the to contained item "dir/" inside the ignored directory, we decided it was safe to skip -- bzzt, wrong!). This update is much more careful about checking that we are not skipping over any prefix of a tracked item, regardless of whether it is ignored or not. As documented in diff.c, this commit does create behavior that still differs from core git with regards to the handling of untracked files contained inside ignored directories. With libgit2, those files will just not show up in status or diff. With core git, those files don't show up in status or diff either *unless* they are explicitly ignored by a .gitignore pattern in which case they show up as ignored files. Needless to say, this is a local behavior difference only, so it should not be important and (to me) the libgit2 behavior seems more consistent.
* | Handle duplicate objects from different backends in git_odb_read_prefix().Han-Wen Nienhuys2012-05-1222-0/+465
|/
* tests: add two binary blobs to attr test repositorynulltoken2012-05-072-0/+0
| | | | | - edf3dce -> assets.github.com/images/icons/emoji/alien.png?v5 - de863bf -> assets.github.com/images/icons/emoji/heart.png?v5
* Fixing issue with test dataRussell Belfer2012-05-046-1/+6
|
* Support reading attributes from indexRussell Belfer2012-05-0319-0/+38
| | | | | | | | | | | | | | Depending on the operation, we need to consider gitattributes in both the work dir and the index. This adds a parameter to all of the gitattributes related functions that allows user control of attribute reading behavior (i.e. prefer workdir, prefer index, only use index). This fix also covers allowing us to check attributes (and hence do diff and status) on bare repositories. This was a somewhat larger change that I hoped because it had to change the cache key used for gitattributes files.
* Backport more test dataVicent Martí2012-05-0213-0/+14
|
* Move test resourcesVicent Martí2012-05-0298-0/+130
|
* Merge branch 'new-error-handling' into developmentVicent Martí2012-05-024-1/+5
| | | | | | | | | | | | | | | | | | | | | Conflicts: .travis.yml include/git2/diff.h src/config_file.c src/diff.c src/diff_output.c src/mwindow.c src/path.c tests-clar/clar_helpers.c tests-clar/object/tree/frompath.c tests/t00-core.c tests/t03-objwrite.c tests/t08-tag.c tests/t10-refs.c tests/t12-repo.c tests/t18-status.c tests/test_helpers.c tests/test_main.c
* Moved testing resources to clar, and removed old tests directory.Ben Straub2012-03-31267-0/+471
Removed the BUILD_CLAR CMake flag, and updated the readme.