- 24 Sep, 2013 12 commits
-
-
Ignore files that disappear while iterating
Vicent Martí committed -
On occasion, files can disappear while we're iterating the filesystem, between calls to readdir and stat. Let's pretend those didn't exist in the first place.
Edward Thomson committed -
Various warning cleanup and minor fixes
Vicent Martí committed -
Minimize regex usage
Vicent Martí committed -
Russell Belfer committed
-
The git_buf_text_gather_stats call returns a boolean indicating if the file looks like binary data. That shouldn't be an error; it should be used to skip CRLF processing though.
Russell Belfer committed -
'del' instead of 'delete' for the poor C++ users
Russell Belfer committed -
Edward Thomson committed
-
Russell Belfer committed
-
This replaces some git_buf_printf calls with simple calls to git_buf_put instead. Also, it fixes a missing va_end inside the git_buf_vprintf implementation.
Russell Belfer committed -
Russell Belfer committed
-
The attempt to "clean up warnings" seems to have introduced some new warnings on compliant compilers. This fixes those in a way that I suspect will also be okay for the non-compliant compilers. Also this fixes what appears to be an extra semicolon in the repo initialization template dir handling (and as part of that fix, handles the case where an error occurs correctly).
Russell Belfer committed
-
- 23 Sep, 2013 1 commit
-
-
In revwalk, we are doing a very simple check to see if a string contains wildcard characters, so a full regular expression match is not needed. In remote listing, now that we have git_config_foreach_match with full regular expression matching, we can take advantage of that and eliminate the regex here, replacing it with much simpler string manipulation.
Russell Belfer committed
-
- 22 Sep, 2013 3 commits
-
-
Fix typo in documentation
Vicent Martí committed -
Make it pair up with the one for commits. This fixes #1691.
Carlos Martín Nieto committed -
Linquize committed
-
- 21 Sep, 2013 1 commit
-
-
Fix warning
Vicent Martí committed
-
- 20 Sep, 2013 3 commits
-
-
OSX 10.8 + Valgrind
Vicent Martí committed -
Make init.templatedir work
Vicent Martí committed -
Linquize committed
-
- 19 Sep, 2013 3 commits
-
-
Ben Straub committed
-
Linquize committed
-
Linquize committed
-
- 18 Sep, 2013 4 commits
-
-
Vicent Marti committed
-
indexer: check the packfile trailer
Vicent Martí committed -
Carlos Martín Nieto committed
-
The packfile trailer gets sent over and we should check whether it's correct as part of our sanity checks of the packfile.
Carlos Martín Nieto committed
-
- 17 Sep, 2013 13 commits
-
-
Configurable template dir for Win32
Vicent Martí committed -
Alternative proposal for filter API
Vicent Martí committed -
This updates clar to the version without cl_assert_equal_sz and then adds a new version of that macro the clar_libgit2.h. The new version works around a strange issue that seemed to be arising on release builds with VS 10 64-bit builds.
Russell Belfer committed -
This contains a few bug fixes and some header and API cleanups. The main API change is that filters should now use GIT_PASSTHROUGH to indicate that they wish to skip processing a file instead of GIT_ENOTFOUND. The bug fixes include a possible out-of-range buffer access in the ident filter, a filter ordering problem I introduced into the custom filter tests on Windows, and a filter buf NUL termination issue that was coming up on Linux.
Russell Belfer committed -
This adds more tests of filters, including the ident filter when mixed with custom filters. I was able to combine with the reverse filter and demonstrate that the order of filter application with the default priority constants matches the order of core Git. Also, this fixes two issues in the ident filter: preventing ident expansion on binary files and avoiding a NULL dereference when dollar sign characters are found without Id.
Russell Belfer committed -
Fixed the filter order to match core Git, too. This test demonstrates an interesting behavior of core Git (which is totally reasonable and which libgit2 matches, although mostly by coincidence). If you use the ident filter and commit a file with a garbage ident in it, like '$Id: this is just garbage$' and then immediately do a 'git checkout-index' with the new file, Git will not consider the file out of date and will not overwrite the file with an updated $Id$. Libgit2 has the same behavior. If you remove the file and then do a checkout-index, it will be replaced with a filtered version that has injected the OID correctly.
Russell Belfer committed -
There were a lot of places in the test code base that were creating a commit from the index on the current branch. This just adds a helper to handle that case pretty easily. There was only one test where this change ended up tweaking the test data, so pretty easy and mostly just a cleanup.
Russell Belfer committed -
These are a couple of new clar helpers for testing that a file has expected contents that I extracted from the checkout code. Actually wrote this as part of an abandoned earlier attempt at a new filters API, but it will be useful now for some of the tests I'm going to write.
Russell Belfer committed -
Russell Belfer committed
-
Russell Belfer committed
-
I wish MSVC understood that "const char **" is not a const ptr, but it a non-const pointer to an array of const ptrs. Does that seem like too much to ask.
Russell Belfer committed -
The global and system config could interfere with the filter tests by imposing CRLF filtering where it was not anticipated. This better isolates the tests from the system settings.
Russell Belfer committed -
Russell Belfer committed
-