Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-13attr tests: make explicit our dir/file match testsEdward Thomson
2015-05-12attr test: test a file beneath ignored folderEdward Thomson
2015-05-12attr: test that a file is not ignored for a folderEdward Thomson
When a .gitignore specifies some folder "foo/", ensure that a file with the same name "foo" is not ignored.
2015-05-12attr: regression tests for ignore matchingEdward Thomson
Ensure that when examining a .gitignore in a subdirectory, we do not erroneously apply the paths contained therein to the root of the repository. (Fixed in c02a0e4).
2015-04-28Improvements to ignore performance on Windows.J Wyman
Minimizing the number directory and file opens, minimizes the amount of IO thus reducing the overall cost of performing ignore operations.
2015-04-23Add failing subdirectory gitignore attr test.Mike McQuaid
2014-09-17attr: Add an extra test for files under a subfolderThe rugged tests are fragile
2014-09-16Fix attribute lookup in index for bare reposRussell Belfer
When using a bare repo with an index, libgit2 attempts to read files from the index. It caches those files based on the path to the file, specifically the path to the directory that contains the file. If there is no working directory, we use `git_path_dirname_r` to get the path to the containing directory. However, for the `.gitattributes` file in the root of the repository, this ends up normalizing the containing path to `"."` instead of the empty string and the lookup the `.gitattributes` data fails. This adds a test of attribute lookups on bare repos and also fixes the problem by simply rewriting `"."` to be `""`.
2014-05-02Some further sandboxing cleanups to testsRussell Belfer
Trying to find other issues where tests may not clean up quite properly when they are through...
2014-05-02Improve handling of fake home directoryRussell Belfer
There are a few tests that set up a fake home directory and a fake GLOBAL search path so that we can test things in global ignore or attribute or config files. This cleans up that code to work more robustly even if there is a test failure. This also fixes some valgrind warnings where scanning search paths for separators could end up doing a little bit of sketchy data access when coming to the end of search list.
2014-05-01Make ** pattern eat trailing slashRussell Belfer
This allows "foo/**/*.html" to match "foo/file.html"
2014-04-19Preload attribute files that may contain macrosRussell Belfer
There was a latent bug where files that use macro definitions could be parsed before the macro definitions were loaded. Because of attribute file caching, preloading files that are going to be used doesn't add a significant amount of overhead, so let's always preload any files that could contain macros before we assemble the actual vector of files to scan for attributes.
2014-04-18Cleanup tests with helper functionsRussell Belfer
2014-04-18Fix broken logic for attr cache invalidationRussell Belfer
The checks to see if files were out of date in the attibute cache was wrong because the cache-breaker data wasn't getting stored correctly. Additionally, when the cache-breaker triggered, the old file data was being leaked.
2014-04-18Attribute file cache refactorRussell Belfer
This is a big refactoring of the attribute file cache to be a bit simpler which in turn makes it easier to enforce a lock around any updates to the cache so that it can be used in a threaded env. Tons of changes to the attributes and ignores code.
2014-04-15Fix core.excludesfile named .gitignoreRussell Belfer
Ignore rules with slashes in them are matched using FNM_PATHNAME and use the path to the .gitignore file from the root of the repository along with the path fragment (including slashes) in the ignore file itself. Unfortunately, the relative path to the .gitignore file was being applied to the global core.excludesfile if that was also named ".gitignore". This fixes that with more precise matching and includes test for ignore rules with leading slashes (which were the primary example of this being broken in the real world). This also backports an improvement to the file context logic from the threadsafe-iterators branch where we don't rely on mutating the key of the attribute file name to generate the context path.
2014-04-06More ** tests for pattern rulesRussell Belfer
2014-04-05Add support for ** matches in ignoresRussell Belfer
This is an experimental addition to add ** support to fnmatch pattern matching in libgit2. It needs more testing.
2014-01-25index: rename an entry's id to 'id'Carlos Martín Nieto
This was not converted when we converted the rest, so do it now.
2013-12-11Remove converting user error to GIT_EUSERRussell Belfer
This changes the behavior of callbacks so that the callback error code is not converted into GIT_EUSER and instead we propagate the return value through to the caller. Instead of using the giterr_capture and giterr_restore functions, we now rely on all functions to pass back the return value from a callback. To avoid having a return value with no error message, the user can call the public giterr_set_str or some such function to set an error message. There is a new helper 'giterr_set_callback' that functions can invoke after making a callback which ensures that some error message was set in case the callback did not set one. In places where the sign of the callback return value is meaningful (e.g. positive to skip, negative to abort), only the negative values are returned back to the caller, obviously, since the other values allow for continuing the loop. The hardest parts of this were in the checkout code where positive return values were overloaded as meaningful values for checkout. I fixed this by adding an output parameter to many of the internal checkout functions and removing the overload. This added some code, but it is probably a better implementation. There is some funkiness in the network code where user provided callbacks could be returning a positive or a negative value and we want to rely on that to cancel the loop. There are still a couple places where an user error might get turned into GIT_EUSER there, I think, though none exercised by the tests.
2013-11-15Rename tests-clar to testsBen Straub