summaryrefslogtreecommitdiff
path: root/tests/filter
Commit message (Collapse)AuthorAgeFilesLines
* wildcard filters: move CHANGELOG message to 0.23+1Edward Thomson2015-07-101-2/+1
|
* wildcard filters: clean up some warnings in testsEdward Thomson2015-07-101-5/+9
|
* Merge pull request #3281 from ethomson/wildcard_filtersCarlos Martín Nieto2015-07-094-104/+310
|\ | | | | filters: custom filters with wildcard attributes
| * filters: custom filters with wildcard attributesEdward Thomson2015-07-014-104/+310
| | | | | | | | | | | | Allow custom filters with wildcard attributes, so that clients can support some random `filter=foo` in a .gitattributes and look up the corresponding smudge/clean commands in the configuration file.
* | Merge pull request #3288 from ethomson/getenvCarlos Martín Nieto2015-07-071-1/+1
|\ \ | | | | | | git__getenv: utf-8 aware env reader
| * | git__getenv: utf-8 aware env readerEdward Thomson2015-07-021-1/+1
| | | | | | | | | | | | | | | | | | Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere. Make `cl_getenv` use this to keep consistent memory handling around return values (free everywhere, as opposed to only some platforms).
* | | filter::stream: free the filter sanelyEdward Thomson2015-07-021-6/+1
|/ / | | | | | | | | | | Don't use the filter's free callback to free the actual data structure holding the filter, as we may not always actually initialize it (the test may be skipped).
* | filter test: pass base typeEdward Thomson2015-06-291-2/+2
|/
* crlf tests: ensure that Unix obeys autocrlf=trueEdward Thomson2015-06-221-4/+0
| | | | | All platforms do terrible, horrible, no good, very bad translation when core.autocrlf=true. It's not just Windows!
* Introduce `git_filter_list_contains`Edward Thomson2015-06-101-0/+91
| | | | | `git_filter_list_contains` can be used to query a filter list to determine if a given filter will be run.
* Fix ident replacement to match Git behaviorColomban Wendling2015-05-263-9/+9
| | | | | Git inserts a space after the SHA1 (as of 2.1.4 at least), so do the same.
* squash some leaksEdward Thomson2015-03-241-0/+2
|
* filter::file tests: test filter_list_apply_to_fileEdward Thomson2015-03-061-0/+97
| | | | | Test that filter_list_apply_to_file works and can accept repo-relative paths.
* tests: separate INVASIVE filesystem testsEdward Thomson2015-02-191-1/+1
| | | | | | Introduce GITTEST_INVASIVE_FS_STRUCTURE for things that are invasive to your filesystem structure (like creating folders at your filesystem root) and GITTEST_INVASIVE_FS_SIZE for things that write lots of data.
* git_filter_opt_t -> git_filter_flag_tEdward Thomson2015-02-191-1/+1
| | | | | For consistency with the rest of the library, where an opt is an options *structure*.
* filter streams: base -> parentEdward Thomson2015-02-181-4/+4
|
* git_writestream: from git_filter_streamEdward Thomson2015-02-181-8/+8
|
* filter: test a large file through the streamEdward Thomson2015-02-171-0/+221
| | | | | Test pushing a file on-disk into a streaming filter that compresses it into the ODB, and inflates it back into the working directory.
* Add files and tests with many UTF-8 chars and few UTF-8 charsLinquize2015-01-201-0/+5
|
* Ignore core.safecrlf=warn until we have a warn infrastructureEdward Thomson2014-05-301-0/+41
|
* Make core.safecrlf work on LF-ending platformsRussell Belfer2014-05-191-3/+3
| | | | | | If you enabled core.safecrlf on an LF-ending platform, we would error even for files with all LFs. We should only be warning on irreversible mappings, I think.
* Add filter options and ALLOW_UNSAFERussell Belfer2014-05-063-13/+63
| | | | | | | | | Diff and status do not want core.safecrlf to actually raise an error regardless of the setting, so this extends the filter API with an additional options flags parameter and adds a flag so that filters can be applied with GIT_FILTER_OPT_ALLOW_UNSAFE, indicating that unsafe filter application should be downgraded from a failure to a warning.
* Introduce core.safecrlf handlingEdward Thomson2014-04-071-0/+80
|
* Fix filter test for CRLF->LF issuesEdward Thomson2014-02-111-1/+2
|
* index: rename an entry's id to 'id'Carlos Martín Nieto2014-01-251-2/+2
| | | | This was not converted when we converted the rest, so do it now.
* Handle git_buf's from users more liberallyEdward Thomson2014-01-081-0/+32
|
* Rename tests-clar to testsBen Straub2013-11-145-0/+648