summaryrefslogtreecommitdiff
path: root/tests-clar/clar_helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* This is a better nameVicent Marti2013-01-021-311/+0
|
* Cleanup Clar to make it SIMPLERVicent Marti2013-01-021-11/+0
|
* tests: introduce cl_git_remove_placeholders()nulltoken2012-11-171-0/+49
|
* clar-helpers: Oops, grab pointerVicent Marti2012-11-121-1/+1
|
* Helpers for local-filesystem remote URLsBen Straub2012-11-091-0/+49
|
* Fix a bug in cl_setenv on Windows XPPhilip Kelley2012-11-011-1/+5
|
* Update clar and add reliable rename for Win32Philip Kelley2012-10-181-3/+40
|
* clar: Proper shutdown orderVicent Marti2012-10-021-1/+1
|
* 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 conversionutf8-winVicent 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
|/
* Make index add/append support core.filemode flagRussell Belfer2012-06-191-4/+5
| | | | | | | | | | | This fixes git_index_add and git_index_append to behave more like core git, preserving old filemode data in the index when adding and/or appending with core.filemode = false. This also has placeholder support for core.symlinks and core.ignorecase, but those flags are not implemented (well, symlinks has partial support for preserving mode information in the same way that git does, but it isn't tested).
* Fix filemode comparison in diffsRussell Belfer2012-06-081-0/+24
| | | | | | | | | | | | | | | 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.
* Tests: wrap 'getenv' and friends for Win32 tests.Ben Straub2012-06-081-0/+57
|
* compat: make p_open able to accept optional mode when passing the O_CREAT flagnulltoken2012-05-071-1/+1
| | | | This has the nice side effect of making test_attr_repo__staging_properly_normalizes_line_endings_according_to_gitattributes_directives() test pass again on Windows. This test started to fail after commit 674a198 was applied.
* clar: Properly create files in helperVicent Martí2012-05-041-3/+2
|
* Silence return value warningVicent Martí2012-05-031-2/+2
|
* chmod for writability when writing test filesRussell Belfer2012-05-021-1/+2
|
* Merge branch 'new-error-handling' into developmentVicent Martí2012-05-021-6/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Refactor git_repository_open with new optionsRussell Belfer2012-04-111-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new command `git_repository_open_ext` with extended options that control how searching for a repository will be done. The existing `git_repository_open` and `git_repository_discover` are reimplemented on top of it. We may want to change the default behavior of `git_repository_open` but this commit does not do that. Improve support for "gitdir" files where the work dir is separate from the repo and support for the "separate-git-dir" config. Also, add support for opening repos created with `git-new-workdir` script (although I have only confirmed that they can be opened, not that all functions work correctly). There are also a few minor changes that came up: - Fix `git_path_prettify` to allow in-place prettifying. - Fix `git_path_root` to support backslashes on Win32. This fix should help many repo open/discover scenarios - it is the one function called when opening before prettifying the path. - Tweak `git_config_get_string` to set the "out" pointer to NULL if the config value is not found. Allows some other cleanup. - Fix a couple places that should have been calling `git_repository_config__weakptr` and were not. - Fix `cl_git_sandbox_init` clar helper to support bare repos.
* | clar: Properly create file in helperVicent Martí2012-04-041-2/+1
|/
* Clean up GIT_UNUSED macros on all platformsRussell Belfer2012-03-021-0/+49
| | | | | | | | | | | | | | | | | | | It turns out that commit 31e9cfc4cbcaf1b38cdd3dbe3282a8f57e5366a5 did not fix the GIT_USUSED behavior on all platforms. This commit walks through and really cleans things up more thoroughly, getting rid of the unnecessary stuff. To remove the use of some GIT_UNUSED, I ended up adding a couple of new iterators for hashtables that allow you to iterator just over keys or just over values. In making this change, I found a bug in the clar tests (where we were doing *count++ but meant to do (*count)++ to increment the value). I fixed that but then found the test failing because it was not really using an empty repo. So, I took some of the code that I wrote for iterator testing and moved it to clar_helpers.c, then made use of that to make it easier to open fixtures on a per test basis even within a single test file.
* Add filter tests and fix some bugsRussell Belfer2012-03-021-0/+12
| | | | | This adds some initial unit tests for file filtering and fixes some simple bugs in filter application.
* Rename the Clay test suite to ClarVicent Martí2012-01-241-0/+29
Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!